Documentation ¶
Overview ¶
Package demo provides overlayed storage, similar to DemoStorage in ZODB/py.
Storage combines base and δ storages as if δ transactional log is logically appended to base.
Index ¶
- type Storage
- func (d *Storage) Close() (err error)
- func (d *Storage) Iterate(ctx context.Context, tidMin, tidMax zodb.Tid) zodb.ITxnIterator
- func (d *Storage) Load(ctx context.Context, xid zodb.Xid) (_ *mem.Buf, _ zodb.Tid, err error)
- func (d *Storage) Sync(ctx context.Context) (_ zodb.Tid, err error)
- func (d *Storage) URL() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage combines base and δ storages as if δ transactional log is logically appended to base.
Base must remain unmodified, and all δ transactions must be with TIDs strictly after base.Head .
Click to show internal directories.
Click to hide internal directories.