Methods
|
|
|
|
__init__
|
__init__ (
self,
file_name,
create=0,
read_only=0,
stop=None,
quota=None,
)
|
|
__len__
|
__len__ ( self )
|
|
_abort
|
_abort ( self )
|
|
_begin
|
_begin (
self,
tid,
u,
d,
e,
)
|
|
_clear_index
|
_clear_index ( self )
|
|
_clear_temp
|
_clear_temp ( self )
|
|
_finish
|
_finish (
self,
tid,
u,
d,
e,
)
|
|
_initIndex
|
_initIndex (
self,
index,
vindex,
tindex,
tvindex,
)
|
|
_load
|
_load (
self,
oid,
version,
_index,
file,
)
|
|
_loada
|
_loada (
self,
oid,
_index,
file,
)
Read any version and return the version
|
|
_newIndexes
|
_newIndexes ( self )
|
|
_redundant_pack
|
_redundant_pack (
self,
file,
pos,
)
|
|
_restore_index
|
_restore_index ( self )
Load the database index from a file to support quick startup
|
|
_sane
|
_sane (
self,
index,
pos,
)
Sanity check saved index data by reading the last undone trans
Basically, we read the last not undone transaction and
check to see that the included records are consistent
with the index. Any invalid record records or inconsistent
object positions cause zero to be returned.
|
|
_save_index
|
_save_index ( self )
Write the database index to a file to support quick startup
|
|
abortVersion
|
abortVersion (
self,
src,
transaction,
)
|
|
close
|
close ( self )
|
|
commitVersion
|
commitVersion (
self,
src,
dest,
transaction,
abort=None,
)
Exceptions
|
|
'VersionCommitError'
POSException.StorageTransactionError( self, transaction )
|
|
|
getSize
|
getSize ( self )
|
|
history
|
history (
self,
oid,
version=None,
length=1,
filter=None,
)
|
|
load
|
load (
self,
oid,
version,
_stuff=None,
)
|
|
loadSerial
|
loadSerial (
self,
oid,
serial,
)
|
|
modifiedInVersion
|
modifiedInVersion ( self, oid )
|
|
pack
|
pack (
self,
t,
referencesf,
)
Copy data from the current database file to a packed file
Non-current records from transactions with time-stamp strings less
than packtss are ommitted. As are all undone records.
Also, data back pointers that point before packtss are resolved and
the associated data are copied, since the old records are not copied.
|
|
store
|
store (
self,
oid,
serial,
data,
version,
transaction,
)
|
|
supportsUndo
|
supportsUndo ( self )
|
|
supportsVersions
|
supportsVersions ( self )
|
|
tpc_vote
|
tpc_vote ( self, transaction )
|
|
undo
|
undo ( self, transaction_id )
|
|
undoLog
|
undoLog (
self,
first,
last,
filter=None,
)
|
|
versionEmpty
|
versionEmpty ( self, version )
|
|
versions
|
versions ( self, max=None )
|
|