unversioned

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transactional added in v0.4.0

type Transactional struct {
	TransactionalVersioned driver.TransactionalVersionedPersistence
}

func (*Transactional) BeginUpdate added in v0.4.0

func (t *Transactional) BeginUpdate() error

func (*Transactional) Close added in v0.4.0

func (t *Transactional) Close() error

func (*Transactional) Commit added in v0.4.0

func (t *Transactional) Commit() error

func (*Transactional) DeleteState added in v0.4.0

func (t *Transactional) DeleteState(namespace driver2.Namespace, key driver2.PKey) error

func (*Transactional) DeleteStates added in v0.4.0

func (t *Transactional) DeleteStates(namespace driver2.Namespace, keys ...driver2.PKey) map[driver2.PKey]error

func (*Transactional) Discard added in v0.4.0

func (t *Transactional) Discard() error

func (*Transactional) GetState added in v0.4.0

func (t *Transactional) GetState(namespace driver2.Namespace, key driver2.PKey) (driver2.RawValue, error)

func (*Transactional) GetStateRangeScanIterator added in v0.4.0

func (t *Transactional) GetStateRangeScanIterator(namespace driver2.Namespace, startKey driver2.PKey, endKey driver2.PKey) (driver.UnversionedResultsIterator, error)

func (*Transactional) GetStateSetIterator added in v0.4.0

func (t *Transactional) GetStateSetIterator(ns driver2.Namespace, keys ...driver2.PKey) (driver.UnversionedResultsIterator, error)

func (*Transactional) NewWriteTransaction added in v0.4.0

func (t *Transactional) NewWriteTransaction() (driver.UnversionedWriteTransaction, error)

func (*Transactional) SetState added in v0.4.0

func (t *Transactional) SetState(namespace driver2.Namespace, key driver2.PKey, value driver2.RawValue) error

func (*Transactional) SetStates added in v0.4.0

func (t *Transactional) SetStates(namespace driver2.Namespace, kvs map[driver2.PKey]driver2.RawValue) map[driver2.PKey]error

func (*Transactional) Stats added in v0.4.0

func (t *Transactional) Stats() any

type Unversioned

type Unversioned struct {
	Versioned driver.VersionedPersistence
}

func (*Unversioned) BeginUpdate

func (db *Unversioned) BeginUpdate() error

func (*Unversioned) Close

func (db *Unversioned) Close() error

func (*Unversioned) Commit

func (db *Unversioned) Commit() error

func (*Unversioned) DeleteState

func (db *Unversioned) DeleteState(namespace driver2.Namespace, key driver2.PKey) error

func (*Unversioned) DeleteStates added in v0.4.0

func (db *Unversioned) DeleteStates(namespace driver2.Namespace, keys ...driver2.PKey) map[driver2.PKey]error

func (*Unversioned) Discard

func (db *Unversioned) Discard() error

func (*Unversioned) GetState

func (db *Unversioned) GetState(namespace driver2.Namespace, key driver2.PKey) (driver2.RawValue, error)

func (*Unversioned) GetStateRangeScanIterator

func (db *Unversioned) GetStateRangeScanIterator(namespace driver2.Namespace, startKey, endKey driver2.PKey) (driver.UnversionedResultsIterator, error)

func (*Unversioned) GetStateSetIterator added in v0.4.0

func (db *Unversioned) GetStateSetIterator(ns driver2.Namespace, keys ...driver2.PKey) (driver.UnversionedResultsIterator, error)

func (*Unversioned) SetState

func (db *Unversioned) SetState(namespace driver2.Namespace, key driver2.PKey, value driver2.RawValue) error

func (*Unversioned) SetStates added in v0.4.0

func (db *Unversioned) SetStates(namespace driver2.Namespace, kvs map[driver2.PKey]driver2.RawValue) map[driver2.PKey]error

func (*Unversioned) Stats added in v0.4.0

func (db *Unversioned) Stats() any

type WriteTransaction added in v0.4.0

type WriteTransaction struct {
	WriteTransaction driver.WriteTransaction
}

func (*WriteTransaction) Commit added in v0.4.0

func (w *WriteTransaction) Commit() error

func (*WriteTransaction) DeleteState added in v0.4.0

func (w *WriteTransaction) DeleteState(namespace driver2.Namespace, key string) error

func (*WriteTransaction) Discard added in v0.4.0

func (w *WriteTransaction) Discard() error

func (*WriteTransaction) SetState added in v0.4.0

func (w *WriteTransaction) SetState(namespace driver2.Namespace, key string, value []byte) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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