Class
ZODB.FileStorage.fspack.DataCopier

Mixin class for copying transactions into a storage.

The restore() and pack() methods share a need to copy data records and update pointers to data in earlier transaction records. This class provides the shared logic.

The mixin extends the FileStorageFormatter with a copy() method. It also requires that the concrete class provides the following attributes:

_file
file with earlier destination data _tfile -- destination file for copied data _pos -- file pos of destination transaction _tindex -- maps oid to data record file pos _tvindex -- maps version name to data record file pos

_tindex and _tvindex are updated by copy().

The copy() method does not do any locking.

Base classes

Implemented Interfaces

There are no implemented interfaces.

Attributes/Properties

There are no attributes in this class.

Methods

Known Subclasses