Skip to content

Commit

Permalink
sqlalchemy: fix deprecation warning for dbapi classmethod (#294)
Browse files Browse the repository at this point in the history
Rename `dbapi` classmethod to `import_dbapi` as required by SQLAlchemy 2

Closes #289

Signed-off-by: Jesse Whitehouse <[email protected]>
  • Loading branch information
Jesse authored Nov 29, 2023
1 parent aaaf047 commit c730648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/databricks/sqlalchemy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class DatabricksDialect(default.DefaultDialect):
EMPTY_FK = EMPTY_INDEX = []

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

def _force_paramstyle_to_native_mode(self):
Expand Down

0 comments on commit c730648

Please sign in to comment.