summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/firebird/base.py
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2020-04-18 20:58:41 +0200
committerFederico Caselli <cfederico87@gmail.com>2020-04-29 17:50:44 +0000
commit18ce4f9937c2d6753acbb054b4990c7da298a5d7 (patch)
treec385de2c16ef63586a1c604efe9393bddbb20acf /lib/sqlalchemy/dialects/firebird/base.py
parent0faee1bbf20cb4a2599888b427b8015ec5f3c890 (diff)
downloadsqlalchemy-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/firebird/base.py')
-rw-r--r--lib/sqlalchemy/dialects/firebird/base.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/firebird/base.py b/lib/sqlalchemy/dialects/firebird/base.py
index 5779ac885..b7260403a 100644
--- a/lib/sqlalchemy/dialects/firebird/base.py
+++ b/lib/sqlalchemy/dialects/firebird/base.py
@@ -16,6 +16,10 @@ r"""
dialect is not tested within continuous integration and is likely to have
many issues and caveats not currently handled.
+.. deprecated:: 1.4 This dialect is deprecated and will be removed
+ in a future version. This dialect is superseded by the external
+ version available at external-dialect_.
+
Firebird Dialects
-----------------
@@ -73,7 +77,7 @@ the SQLAlchemy ``returning()`` method, such as::
.. _dialects: http://mc-computing.com/Databases/Firebird/SQL_Dialect.html
-
+.. _external-dialect: https://github.com/pauldex/sqlalchemy-firebird
"""
import datetime
@@ -648,6 +652,15 @@ class FBDialect(default.DefaultDialect):
# first connect
_version_two = True
+ def __init__(self, *args, **kwargs):
+ util.warn_deprecated(
+ "The firebird dialect is deprecated and will be removed "
+ "in a future version. This dialect is superseded by the external "
+ "dialect https://github.com/pauldex/sqlalchemy-firebird.",
+ version="1.4",
+ )
+ super(FBDialect, self).__init__(*args, **kwargs)
+
def initialize(self, connection):
super(FBDialect, self).initialize(connection)
self._version_two = (