Latest Version: 0.9.6.2

AutoConnectHub

Connects to the database once per thread.

The AutoConnectHub also provides convenient methods for managing transactions.


Attributes

a params

{}

a uri

None

Methods

f __init__(self, uri=None, pool_connections=True) ...

f begin(self) ...

Starts a transaction.

f commit(self) ...

Commits the current transaction.

f end(self) ...

Ends the transaction, returning to a standard connection.

f getConnection(self) ...

f rollback(self) ...

Rolls back the current transaction.

See the source for more information.

Top