Open desertproject opened 1 month ago
If done in a major release, I'd recommend the breaking change of making oracledb the default, since that is the new name for cx_Oracle. (See the release announcement). The cx_Oracle namespace hasn't had any releases since 2021 and is not getting any further releases.
oracledb can be used with SQLAlchemy 1, but only if an extra code snippet is included before cx_Oracle is imported, see https://python-oracledb.readthedocs.io/en/latest/user_guide/appendix_c.html#python-frameworks-sql-generators-and-orms
🚀 The feature
Add support for the
oracledb
driver in the OracleConnector. Allow users to choose betweencx_oracle
andoracledb
as options.Motivation, pitch
cx_Oracle advises new projects to use oracledb instead.
Alternatives
Patch
connectors/sql.py
toSpecify the driver as
oracledb
Additional context
Support for
oracledb
is available only in SQLAlchemy versions 2.0 and later, so this dependency needs to be updated as well.Since
sqlalchemy-databricks 0.2.0
requiresSQLAlchemy<2
, consider addressing #1292 first.