Package MySQLdb :: Module connections
[show private | hide private]
[frames | no frames]

Module MySQLdb.connections

This module implements connections for MySQLdb. Presently there is only one class: Connection. Others are unlikely. However, you might want to make your own subclasses. In most cases, you will probably override Connection.default_cursor with a non-standard Cursor class.


Classes
Connection MySQL Database Connection Object

Function Summary
  defaulterrorhandler(connection, cursor, errorclass, errorvalue)
If cursor is not None, (errorclass, errorvalue) is appended to cursor.messages; otherwise it is appended to connection.messages.

Function Details

defaulterrorhandler(connection, cursor, errorclass, errorvalue)

If cursor is not None, (errorclass, errorvalue) is appended to cursor.messages; otherwise it is appended to connection.messages. Then errorclass is raised with errorvalue as the value.

You can override this with your own error handler by assigning it to the instance.


Generated by Epydoc 2.1 on Sat Mar 3 21:14:16 2007 http://epydoc.sf.net