Skip to content

Commit

Permalink
SNOW-1058245-sqlalchemy-20-support: add import_dbapi() classmethod to…
Browse files Browse the repository at this point in the history
… SnowDialect
  • Loading branch information
sfc-gh-mraba committed Feb 19, 2024
1 parent be6a27d commit 6918aa7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/snowflake/sqlalchemy/snowdialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ class SnowflakeDialect(default.DefaultDialect):

@classmethod
def dbapi(cls):
return cls.import_dbapi()

@classmethod
def import_dbapi(cls):
from snowflake import connector

return connector
Expand Down

0 comments on commit 6918aa7

Please sign in to comment.