DB API Module Basics

Exceptions

exception attachdb.Warning

A warning exception, a subclass of StandardError

Note

currently unused

exception attachdb.Error

A base error exception, a subclass of StandardError

exception attachdb.InterfaceError

An error in the interface, a subclass of Error

Note

currently unused

exception attachdb.DatabaseError

A base exception for errors in the database, a subclass of Error

exception attachdb.DataError

An error in the processed data, a subclass of DatabaseError

Note

currently unused

exception attachdb.OperationalError

An error in the database server, a subclass of DatabaseError

exception attachdb.IntegrityError

An error in foreign key, a subclass of DatabaseError

Note

currently unused

exception attachdb.InternalError

An internal error in the database server, a subclass of DatabaseError

Note

currently unused

exception attachdb.ProgrammingError

An error in the client side application, a subclass of DatabaseError

exception attachdb.NotSupportedError

Feature not supported error, a subclass of DatabaseError

Note

currently unused

Functions

attachdb.connection(host, port=3306, user='', password='', database='', autocommit=False)

An alias to create an instance of Connection