mxodbc.py 973 B

12345678910111213141516171819202122232425262728293031323334
  1. # sybase/mxodbc.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. """
  8. .. dialect:: sybase+mxodbc
  9. :name: mxODBC
  10. :dbapi: mxodbc
  11. :connectstring: sybase+mxodbc://<username>:<password>@<dsnname>
  12. :url: https://www.egenix.com/
  13. .. note::
  14. This dialect is a stub only and is likely non functional at this time.
  15. """
  16. from sqlalchemy.connectors.mxodbc import MxODBCConnector
  17. from sqlalchemy.dialects.sybase.base import SybaseDialect
  18. from sqlalchemy.dialects.sybase.base import SybaseExecutionContext
  19. class SybaseExecutionContext_mxodbc(SybaseExecutionContext):
  20. pass
  21. class SybaseDialect_mxodbc(MxODBCConnector, SybaseDialect):
  22. execution_ctx_cls = SybaseExecutionContext_mxodbc
  23. supports_statement_cache = True
  24. dialect = SybaseDialect_mxodbc