Package rdflib :: Package store :: Module AuditableStorage
[show private | hide private]
[frames | no frames]

Module rdflib.store.AuditableStorage

This wrapper intercepts calls through the store interface
And implements thread-safe logging of destructive operations (adds / removes) in reverse.
This is persisted on the store instance and the reverse operations are executed
In order to return the store to the state it was when the transaction began
Since the reverse operations are persisted on the store, the store itself acts
as a transaction.  Calls to commit or rollback, flush the list of reverse operations
This provides thread-safe atomicity and isolation (assuming concurrent operations occur with different
store instances), but no durability (transactions are persisted in memory and wont
 be available to reverse operations after the systeme fails): A and I out of ACID.

Classes
AuditableStorage  

Variable Summary
dict destructiveOpLocks = {'add': None, 'remove': None}

Variable Details

destructiveOpLocks

Type:
dict
Value:
{'add': None, 'remove': None}                                          

Generated by Epydoc 2.1 on Mon Oct 23 14:11:25 2006 http://epydoc.sf.net