Documentation
¶
Overview ¶
Package badgerpack implements the kvpack drivers using BadgerDB.
Index ¶
- func Open(opts badger.Options) (*kvpack.Database, error)
- type DB
- type Txn
- func (txn *Txn) Commit() error
- func (txn *Txn) DeletePrefix(prefix []byte) error
- func (txn *Txn) Get(k []byte) ([]byte, error)
- func (txn *Txn) Iterate(prefix []byte, fn func(k, v []byte) error) error
- func (txn *Txn) IterateKey(prefix []byte, fn func(k []byte) error) error
- func (txn *Txn) Preload(prefix []byte)
- func (txn *Txn) Put(k, v []byte) error
- func (txn *Txn) Rollback() error
- func (txn *Txn) Unload(prefix []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
DB implements driver.Database.
type Txn ¶
Txn implements driver.Transaction.
func (*Txn) DeletePrefix ¶
DeletePrefix deletes all keys with the given prefix.
func (*Txn) IterateKey ¶
IterateKey iterates over all keys with the given prefix in lexicographic order.
Click to show internal directories.
Click to hide internal directories.