__init__.py 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # databases/__init__.py
  2. # Copyright (C) 2005-2022 the SQLAlchemy authors and contributors
  3. # <see AUTHORS file>
  4. #
  5. # This module is part of SQLAlchemy and is released under
  6. # the MIT License: https://www.opensource.org/licenses/mit-license.php
  7. """Include imports from the sqlalchemy.dialects package for backwards
  8. compatibility with pre 0.6 versions.
  9. """
  10. from ..dialects.firebird import base as firebird
  11. from ..dialects.mssql import base as mssql
  12. from ..dialects.mysql import base as mysql
  13. from ..dialects.oracle import base as oracle
  14. from ..dialects.postgresql import base as postgresql
  15. from ..dialects.sqlite import base as sqlite
  16. from ..dialects.sybase import base as sybase
  17. from ..util import warn_deprecated_20
  18. postgres = postgresql
  19. __all__ = (
  20. "firebird",
  21. "mssql",
  22. "mysql",
  23. "postgresql",
  24. "sqlite",
  25. "oracle",
  26. "sybase",
  27. )
  28. warn_deprecated_20(
  29. "The `database` package is deprecated and will be removed in v2.0 "
  30. "of sqlalchemy. Use the `dialects` package instead."
  31. )