b.t.ReadOnlyTransaction(object) : class documentation

Part of bzrlib.transactions View In Hierarchy

Known subclasses: bzrlib.transactions.WriteTransaction

A read only unit of work for data objects.
Method finish Clean up this transaction.
Method __init__ Undocumented
Method is_clean Return True if an_object is clean.
Method register_clean Register an_object as being clean.
Method register_dirty Register an_object as being dirty.
Method set_cache_size Set a new cache size.
Method writeable Read only transactions do not allow writes.
Method _trim Trim the cache back if needed.
def finish(self):
Clean up this transaction.
def __init__(self):
Undocumented
def is_clean(self, an_object):
Return True if an_object is clean.
def register_clean(self, an_object, precious=False):
Register an_object as being clean.

If the precious hint is True, the object will not be ejected from the object identity map ever.

def register_dirty(self, an_object):
Register an_object as being dirty.
def set_cache_size(self, size):
Set a new cache size.
def _trim(self):
Trim the cache back if needed.
def writeable(self):
Read only transactions do not allow writes.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.