1.1 Sybase -- Provide interface to Sybase

The Sybase module contains the following:

__version__
A string which specifies the version of the Sybase module.

apilevel
Specifies the level of DB-API compliance. Currently set to '2.0'.

threadsafety
Specifies the DB-API threadsafety. The Sybase module allows threads to share the module, connections and cursors.

paramstyle
Specifies the DB-API parameter style. The Sybase module uses question marks as parameter place holders.

Cursor (owner)
Return a new instance of the Cursor class which implements the DB-API 2.0 cursor functionality.

The owner argument must be an instance of the Connection class.

Bulkcopy (owner, table, direction)
Return a new instance of the Bulkcopy class.

The owner argument must be an instance of the Connection class. A bulk copy context will be established for the table named in the table argument, the bulkcopy direction must be either CS_BLK_IN or CS_BLK_OUT as defined in the _sybase module.

This is an extension of the DB-API 2.0 specification.

Connection (dsn, user, passwd [, database = None][, strip = 0])
Return a new instance of the Connection class which implements the DB-API 2.0 connection functionality.

The dsn argument identifies the Sybase server, user and passwd are the Sybase username and password respectively. If supplied, database specifies the database to use. If the optional strip argument is non-zero then all char columns will be right stripped of whitespace.

connect (dsn, user, passwd [, database = None][, strip = 0])
Implements the DB-API 2.0 connect() function.

Creates a new Connection object passing the function arguments to the Connection constructor.