Installation guide

mxODBC - Python ODBC Database Interface
If you need to specify your own SQLSTATE to exception class mappings, you
can assign to this dictionary. Changes will become visible immediately.
license
String with the license information for the installed mxODBC license.
paramstyle
String constant stating the type of parameter marker formatting expected by
the interface. This is set to
'qmark', since the ODBC default is to use '?' to
be used as positional placeholder for variables in an SQL statement.
Parameters are bound to these placeholders in the order they appear in the
SQL statement, e.g. the first parameter is bound to the first question mark, the
second to the second and so on.
Note that the parameter style can be changes on a per-connection or per-
cursor basis using the
connection.paramstyle and cursor.paramstyle
read/write attributes.
sqltype
Dictionary mapping SQL type codes (these are returned in the type field of
cursor.description) to type strings. All natively supported SQL type codes
are included in this dictionary. The contents may vary depending on whether
the ODBC driver/manager defines these types or not.
threadsafety
Integer constant stating the level of thread safety the interface supports. It is
always set to
1, meaning that each thread must use its own connection.
Some ODBC drivers also support sharing connections and even cursors
between threads. Please have a look at your ODBC driver documentation for
details.
12.2 mx.ODBC Globals and Constants
At the top-level, the mx.ODBC package defines these globals and constants:
Error, Warning, InterfaceError, DatabaseError, DataError,
OperationalError, IntegrityError, InternalError,
ProgrammingError, NotSupportedError
Exception objects used by the mxODBC subpackages. See section 10.
mxODBC Exceptions and Error Handling for details.
170