Skip to content

Commit 56779de

Browse files
Jessesaishreeeee
authored andcommitted
sqlalchemy: fix deprecation warning for dbapi classmethod (#294)
Rename `dbapi` classmethod to `import_dbapi` as required by SQLAlchemy 2 Closes #289 Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com> Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
1 parent be68e2f commit 56779de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/databricks/sqlalchemy/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class DatabricksDialect(default.DefaultDialect):
8282
EMPTY_FK = EMPTY_INDEX = []
8383

8484
@classmethod
85-
def dbapi(cls):
85+
def import_dbapi(cls):
8686
return sql
8787

8888
def _force_paramstyle_to_native_mode(self):

0 commit comments

Comments
 (0)