You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
937B

  1. # sybase/mxodbc.py
  2. # Copyright (C) 2005-2021 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: http://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: http://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