Documentation ¶
Index ¶
- Constants
- func New(options basedb.Options) (basedb.IDb, error)
- type BadgerDb
- func (b *BadgerDb) Close()
- func (b *BadgerDb) CountByCollection(prefix []byte) (int64, error)
- func (b *BadgerDb) Delete(prefix []byte, key []byte) error
- func (b *BadgerDb) Get(prefix []byte, key []byte) (basedb.Obj, bool, error)
- func (b *BadgerDb) GetAll(prefix []byte, handler func(int, basedb.Obj) error) error
- func (b *BadgerDb) GetMany(prefix []byte, keys [][]byte, iterator func(basedb.Obj) error) error
- func (b *BadgerDb) RemoveAllByCollection(prefix []byte) error
- func (b *BadgerDb) Set(prefix []byte, key []byte, value []byte) error
- func (b *BadgerDb) SetMany(prefix []byte, n int, next func(int) (basedb.Obj, error)) error
- func (b *BadgerDb) Update(fn func(basedb.Txn) error) error
Constants ¶
View Source
const (
// EntryNotFoundError is an error for a storage entry not found
EntryNotFoundError = "EntryNotFoundError"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BadgerDb ¶
type BadgerDb struct {
// contains filtered or unexported fields
}
BadgerDb struct
func (*BadgerDb) CountByCollection ¶ added in v0.0.4
CountByCollection return the object count for all keys under specified prefix(bucket)
func (*BadgerDb) RemoveAllByCollection ¶ added in v0.0.18
RemoveAllByCollection cleans all items in a collection
Click to show internal directories.
Click to hide internal directories.