Documentation ¶
Index ¶
- type Batch
- type Database
- func (db *Database) Close() error
- func (db *Database) Get(storeKey []byte, targetVersion uint64, key []byte) ([]byte, error)
- func (db *Database) GetLatestVersion() (uint64, error)
- func (db *Database) Has(storeKey []byte, version uint64, key []byte) (bool, error)
- func (db *Database) Iterator(storeKey []byte, version uint64, start, end []byte) (corestore.Iterator, error)
- func (db *Database) NewBatch(version uint64) (store.Batch, error)
- func (db *Database) PrintRowsDebug()
- func (db *Database) Prune(version uint64) error
- func (db *Database) ReverseIterator(storeKey []byte, version uint64, start, end []byte) (corestore.Iterator, error)
- func (db *Database) SetLatestVersion(version uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batch ¶
type Batch struct {
// contains filtered or unexported fields
}
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) Get ¶
func (*Database) Has ¶
func (*Database) Iterator ¶
func (*Database) Prune ¶
Prune removes all versions of all keys that are <= the given version. It keeps the latest (non-tombstoned) version of each key/value tuple to handle queries above the prune version. This is analogous to RocksDB full_history_ts_low.
We perform the prune by deleting all versions of a key, excluding reserved keys, that are <= the given version, except for the latest version of the key.
func (*Database) ReverseIterator ¶
Click to show internal directories.
Click to hide internal directories.