Documentation ¶
Index ¶
- type DB
- func (db *DB) BeginUpdate() error
- func (db *DB) Close() error
- func (db *DB) Commit() error
- func (db *DB) DeleteState(namespace, key string) error
- func (db *DB) Discard() error
- func (db *DB) GetState(namespace, key string) ([]byte, uint64, uint64, error)
- func (db *DB) GetStateMetadata(namespace, key string) (map[string][]byte, uint64, uint64, error)
- func (db *DB) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (driver.VersionedResultsIterator, error)
- func (db *DB) NewWriteTransaction() (driver.WriteTransaction, error)
- func (db *DB) SetState(namespace, key string, value []byte, block, txnum uint64) error
- func (db *DB) SetStateMetadata(namespace, key string, metadata map[string][]byte, block, txnum uint64) error
- type Driver
- func (v *Driver) New(sp view.ServiceProvider, dataSourceName string, config driver.Config) (driver.Persistence, error)
- func (o *Driver) NewTransactionalVersionedPersistence(sp view.ServiceProvider, dataSourceName string, config driver.Config) (driver.TransactionalVersionedPersistence, error)
- func (v *Driver) NewVersioned(sp view.ServiceProvider, dataSourceName string, config driver.Config) (driver.VersionedPersistence, error)
- type Opts
- type WriteTransaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶ added in v0.3.0
type DB struct {
// contains filtered or unexported fields
}
func (*DB) BeginUpdate ¶ added in v0.3.0
func (*DB) DeleteState ¶ added in v0.3.0
func (*DB) GetStateMetadata ¶ added in v0.3.0
func (*DB) GetStateRangeScanIterator ¶ added in v0.3.0
func (*DB) NewWriteTransaction ¶ added in v0.3.0
func (db *DB) NewWriteTransaction() (driver.WriteTransaction, error)
type Driver ¶
type Driver struct{}
func (*Driver) New ¶
func (v *Driver) New(sp view.ServiceProvider, dataSourceName string, config driver.Config) (driver.Persistence, error)
func (*Driver) NewTransactionalVersionedPersistence ¶ added in v0.3.0
func (o *Driver) NewTransactionalVersionedPersistence(sp view.ServiceProvider, dataSourceName string, config driver.Config) (driver.TransactionalVersionedPersistence, error)
NewTransactionalVersionedPersistence returns a new TransactionalVersionedPersistence for the passed data source and config
func (*Driver) NewVersioned ¶
func (v *Driver) NewVersioned(sp view.ServiceProvider, dataSourceName string, config driver.Config) (driver.VersionedPersistence, error)
type WriteTransaction ¶ added in v0.3.0
type WriteTransaction struct {
// contains filtered or unexported fields
}
func (*WriteTransaction) Commit ¶ added in v0.3.0
func (w *WriteTransaction) Commit() error
func (*WriteTransaction) Discard ¶ added in v0.3.0
func (w *WriteTransaction) Discard() error
Click to show internal directories.
Click to hide internal directories.