赛贝斯¶

Support for the Sybase database.

数据库接口支持

The following dialect/DBAPI options are available. Please refer to individual DBAPI sections for connect information.

注解

Sybase方言在当前的SQLAlchemy版本上运行,但没有定期测试,可能存在许多问题和警告,目前尚未处理。

Python Sybase

Support for the Sybase database via the Python-Sybase driver.

DBAPI

Documentation and download information (if applicable) for Python-Sybase is available at: http://python-sybase.sourceforge.net/

Connecting

Connect String:

sybase+pysybase://<username>:<password>@<dsn>/[database name]

Unicode支持

此时,python sybase驱动程序似乎不支持任何类型的非ASCII字符串。

脓毒症

Support for the Sybase database via the PyODBC driver.

DBAPI

Documentation and download information (if applicable) for PyODBC is available at: http://pypi.python.org/pypi/pyodbc/

Connecting

Connect String:

sybase+pyodbc://<username>:<password>@<dsnname>[/<database>]

Unicode支持

pyodbc驱动程序当前支持使用这些带有unicode或多字节字符串的Sybase类型:

CHAR
NCHAR
NVARCHAR
TEXT
VARCHAR

目前 not 支持的有:

UNICHAR
UNITEXT
UNIVARCHAR

MXODBC

Support for the Sybase database via the mxODBC driver.

DBAPI

Documentation and download information (if applicable) for mxODBC is available at: http://www.egenix.com/

Connecting

Connect String:

sybase+mxodbc://<username>:<password>@<dsnname>

注解

这种方言只是一个存根,目前可能不起作用。