Update dbapi
method to import_dbapi
for APSWGSheetsDialect
to remove warning at the start of program
#387
Labels
dbapi
method to import_dbapi
for APSWGSheetsDialect
to remove warning at the start of program
#387
Is your feature request related to a problem? Please describe.
For newer versions of SQLAlchemy (2.0), usage of
dbapi()
class method is deprecated. It is recommended to implementimport_dbapi()
class method. DocsSo, the following warning is shown every time I use SQLAlchemy with Google Sheets adapter:
Describe the solution you'd like
I would like to update the base class
APSWDialect
. Remove (if it does not break anything, I am not sure how it really works rn) or extend the class with the class methodimport_dbapi
.Describe alternatives you've considered
Leaving as it is for now. But as it is deprecated, better follow the docs.
Additional context
Python 3.11
SQLAlchemy==2.0.20
importlib-metadata==6.8.0 (without it SQLAlchemy, ORM to be exact, does not work)
The text was updated successfully, but these errors were encountered: