demo

package
v1.8.2-0...-f7776fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2024 License: GPL-2.0, GPL-3.0 Imports: 12 Imported by: 0

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

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 .

func (*Storage) Close

func (d *Storage) Close() (err error)

Close implements zodb.IStorageDriver .

func (*Storage) Iterate

func (d *Storage) Iterate(ctx context.Context, tidMin, tidMax zodb.Tid) zodb.ITxnIterator

Iterator implements zodb.IStorageDriver .

func (*Storage) Load

func (d *Storage) Load(ctx context.Context, xid zodb.Xid) (_ *mem.Buf, _ zodb.Tid, err error)

Load implements zodb.IStorageDriver .

func (*Storage) Sync

func (d *Storage) Sync(ctx context.Context) (_ zodb.Tid, err error)

Sync implements zodb.IStorageDriver .

func (*Storage) URL

func (d *Storage) URL() string

URL implements zodb.IStorageDriver .

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL