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) Get(prefix []byte, key []byte) (basedb.Obj, error)
- func (b *BadgerDb) GetAllByCollection(prefix []byte) ([]basedb.Obj, error)
- func (b *BadgerDb) Set(prefix []byte, key []byte, value []byte) 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) GetAllByCollection ¶
GetAllByCollection return all array of Obj for all keys under specified prefix(bucket)
Click to show internal directories.
Click to hide internal directories.