Demo storage
Demo storages provide useful storages for writing tests because they store their data in memory and throw away their data (implicitly) when they are closed.
They were originally designed to allow demonstrations using base data provided on a CD. They can optionally wrap an unchanging base storage. It is critical that the base storage does not change. Using a changing base storage is not just unsupported, it is known not to work and can even lead to serious errors and even core dumps.
There are no implemented interfaces.
There are no attributes in this class.
abortVersion(src, transaction)
cleanup()
close()
commitVersion(src, dest, transaction)
copyTransactionsFrom(other, verbose=0)
Copy transactions from another storage.
This is typically used for converting data from one storage to another. `other` must have an .iterator() method.
getName()
getSize()
getTid(oid)
history(oid, version, length=1, filter=None)
isReadOnly()
lastTransaction()
load(oid, version)
loadBefore(oid, tid)
Return most recent revision of oid before tid committed.
loadSerial(oid, serial)
modifiedInVersion(oid)
new_oid()
pack(t, referencesf)
registerDB(db)
set_max_oid(possible_new_max_oid)
sortKey()
Return a string that can be used to sort storage instances.
The key must uniquely identify a storage and must be the same across multiple instantiations of the same storage.
store(oid, serial, data, version, transaction)
supportsVersions()
tpc_abort(transaction)
tpc_begin(transaction, tid=None, status=' ')
tpc_finish(transaction, f=None)
tpc_transaction()
tpc_vote(transaction)
undoInfo(first=0, last=-20, specification=None)
undoLog(first, last, filter=None)
versionEmpty(version)
versions(max=None)
There are no known subclasses.