Test snowflake connection
This commit is contained in:
parent
d6473aab87
commit
b3b962534f
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue