Documentation ¶
Index ¶
- type Transactional
- func (t *Transactional) BeginUpdate() error
- func (t *Transactional) Close() error
- func (t *Transactional) Commit() error
- func (t *Transactional) DeleteState(namespace driver2.Namespace, key driver2.PKey) error
- func (t *Transactional) DeleteStates(namespace driver2.Namespace, keys ...driver2.PKey) map[driver2.PKey]error
- func (t *Transactional) Discard() error
- func (t *Transactional) GetState(namespace driver2.Namespace, key driver2.PKey) (driver2.RawValue, error)
- func (t *Transactional) GetStateRangeScanIterator(namespace driver2.Namespace, startKey driver2.PKey, endKey driver2.PKey) (driver.UnversionedResultsIterator, error)
- func (t *Transactional) GetStateSetIterator(ns driver2.Namespace, keys ...driver2.PKey) (driver.UnversionedResultsIterator, error)
- func (t *Transactional) NewWriteTransaction() (driver.UnversionedWriteTransaction, error)
- func (t *Transactional) SetState(namespace driver2.Namespace, key driver2.PKey, value driver2.RawValue) error
- func (t *Transactional) SetStates(namespace driver2.Namespace, kvs map[driver2.PKey]driver2.RawValue) map[driver2.PKey]error
- func (t *Transactional) Stats() any
- type Unversioned
- func (db *Unversioned) BeginUpdate() error
- func (db *Unversioned) Close() error
- func (db *Unversioned) Commit() error
- func (db *Unversioned) DeleteState(namespace driver2.Namespace, key driver2.PKey) error
- func (db *Unversioned) DeleteStates(namespace driver2.Namespace, keys ...driver2.PKey) map[driver2.PKey]error
- func (db *Unversioned) Discard() error
- func (db *Unversioned) GetState(namespace driver2.Namespace, key driver2.PKey) (driver2.RawValue, error)
- func (db *Unversioned) GetStateRangeScanIterator(namespace driver2.Namespace, startKey, endKey driver2.PKey) (driver.UnversionedResultsIterator, error)
- func (db *Unversioned) GetStateSetIterator(ns driver2.Namespace, keys ...driver2.PKey) (driver.UnversionedResultsIterator, error)
- func (db *Unversioned) SetState(namespace driver2.Namespace, key driver2.PKey, value driver2.RawValue) error
- func (db *Unversioned) SetStates(namespace driver2.Namespace, kvs map[driver2.PKey]driver2.RawValue) map[driver2.PKey]error
- func (db *Unversioned) Stats() any
- type WriteTransaction
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 (*Transactional) DeleteStates ¶ added in v0.4.0
func (*Transactional) Discard ¶ added in v0.4.0
func (t *Transactional) Discard() 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) 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 (*Unversioned) DeleteStates ¶ added in v0.4.0
func (*Unversioned) Discard ¶
func (db *Unversioned) Discard() 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) 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
Click to show internal directories.
Click to hide internal directories.