Skip to content

Commit c730648

Browse files
author
Jesse
authored
sqlalchemy: fix deprecation warning for dbapi classmethod (databricks#294)
Rename `dbapi` classmethod to `import_dbapi` as required by SQLAlchemy 2 Closes databricks#289 Signed-off-by: Jesse Whitehouse <[email protected]>
1 parent aaaf047 commit c730648

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)