SolidDBConnection

A 'tough' version of DB-API 2 connections.


Methods

f __init__(self, connect_factory, dbapi_module, maxusage=0) ...

Create a 'tough' DB-API 2 connection.

f close(self) ...

Close the tough connection.

You are allowed to close a tough connection by default and it will not complain if you close it more than once.

You can disallow closing connections by setting the _closeable attribute to false. In this case, closing a connection will be silently ignored. @@ ianb: should it be ignored?

f commit(self) ...

Commit any pending transaction.

f rollback(self) ...

Rollback pending transaction.

f cursor(self) ...

Return a new Cursor Object using the connection.

See the source for more information.