SQLAlchemy 0.3 Documentation
Version: 0.3.10 Last Updated: 07/29/07 00:15:33
module sqlalchemy.engine.threadlocal
class TLConnection(Connection)
back to section topclass TLEngine(Engine)
An Engine that includes support for thread-local managed transactions.
This engine is better suited to be used with threadlocal Pool object.
def __init__(self, *args, **kwargs)
The TLEngine relies upon the ConnectionProvider having "threadlocal" behavior, so that once a connection is checked out for the current thread, you get that same connection repeatedly.
def connect(self, **kwargs)
back to section top
Return a Connection that is not thread-locally scoped.
This is the equivalent to calling connect() on a ComposedSQLEngine.
class TLSession(object)
back to section topclass TLocalConnectionProvider(PoolConnectionProvider)
back to section top
Up: Generated Documentation
|
Previous: module sqlalchemy.engine.default
|
Next: module sqlalchemy.ansisql
