Test snowflake connection

This commit is contained in:
Adria Navarro 2023-05-16 11:40:29 +02:00
parent d6473aab87
commit b3b962534f
1 changed files with 9 additions and 0 deletions

View File

@ -71,6 +71,15 @@ class SnowflakeIntegration {
this.client = new Snowflake(config)
}
async testConnection() {
try {
await this.client.connect()
return true
} catch (e: any) {
return { error: e.message as string }
}
}
async internalQuery(query: SqlQuery) {
await this.client.connect()
try {