diff options
author | Federico Caselli <cfederico87@gmail.com> | 2020-04-18 20:58:41 +0200 |
---|---|---|
committer | Federico Caselli <cfederico87@gmail.com> | 2020-04-29 17:50:44 +0000 |
commit | 18ce4f9937c2d6753acbb054b4990c7da298a5d7 (patch) | |
tree | c385de2c16ef63586a1c604efe9393bddbb20acf /lib/sqlalchemy/dialects/mysql/oursql.py | |
parent | 0faee1bbf20cb4a2599888b427b8015ec5f3c890 (diff) | |
download | sqlalchemy-18ce4f9937c2d6753acbb054b4990c7da298a5d7.tar.gz |
Deprecate unsupported dialects and dbapi
- Deprecate dialects firebird and sybase.
- Deprecate DBAPI
- mxODBC for mssql
- oursql for mysql
- pygresql and py-postgresql for postgresql
- Removed adodbapi DBAPI for mssql
Fixes: #5189
Change-Id: Id9025f4f4de7e97d65aacd0eb4b0c21beb9a67b5
Diffstat (limited to 'lib/sqlalchemy/dialects/mysql/oursql.py')
-rw-r--r-- | lib/sqlalchemy/dialects/mysql/oursql.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/oursql.py b/lib/sqlalchemy/dialects/mysql/oursql.py index d7334711b..7c2b220b4 100644 --- a/lib/sqlalchemy/dialects/mysql/oursql.py +++ b/lib/sqlalchemy/dialects/mysql/oursql.py @@ -19,6 +19,10 @@ and is **not tested as part of SQLAlchemy's continuous integration**. The recommended MySQL dialects are mysqlclient and PyMySQL. +.. deprecated:: 1.4 The OurSQL DBAPI is deprecated and will be removed + in a future version. Please use one of the supported DBAPIs to + connect to mysql. + Unicode ------- @@ -68,6 +72,12 @@ class MySQLDialect_oursql(MySQLDialect): @classmethod def dbapi(cls): + util.warn_deprecated( + "The OurSQL DBAPI is deprecated and will be removed " + "in a future version. Please use one of the supported DBAPIs to " + "connect to mysql.", + version="1.4", + ) return __import__("oursql") def do_execute(self, cursor, statement, parameters, context=None): |