Package trac :: Package db :: Module api :: Class TransactionContextManager

Class TransactionContextManager

source code

      object --+    
               |    
DbContextManager --+
                   |
                  TransactionContextManager

Transactioned Database Context Manager for retrieving a ~trac.db.util.ConnectionWrapper.

The outermost such context manager will perform a commit upon normal exit or a rollback after an exception.

Instance Methods
 
__enter__(self) source code
 
__exit__(self, et, ev, tb) source code

Inherited from DbContextManager: __call__, __init__, execute, executemany

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables

Inherited from DbContextManager: db

Properties

Inherited from object: __class__