Documentation ¶
Index ¶
- type BadgerDB
- func (b *BadgerDB) Close() error
- func (b *BadgerDB) DeleteVersion(target uint64) error
- func (b *BadgerDB) ReadWriter() db.DBReadWriter
- func (b *BadgerDB) Reader() db.DBReader
- func (b *BadgerDB) ReaderAt(version uint64) (db.DBReader, error)
- func (b *BadgerDB) Revert() error
- func (b *BadgerDB) SaveNextVersion() (uint64, error)
- func (b *BadgerDB) SaveVersion(target uint64) error
- func (b *BadgerDB) Stats() map[string]string
- func (b *BadgerDB) Versions() (db.VersionSet, error)
- func (b *BadgerDB) Writer() db.DBWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadgerDB ¶
type BadgerDB struct {
// contains filtered or unexported fields
}
BadgerDB is a connection to a BadgerDB key-value database.
func NewDB ¶
NewDB creates or loads a BadgerDB key-value database inside the given directory. If dir does not exist, it will be created.
func NewDBWithOptions ¶
NewDBWithOptions creates a BadgerDB key-value database with the specified Options (https://pkg.go.dev/github.com/dgraph-io/badger/v3#Options)
func (*BadgerDB) DeleteVersion ¶
func (*BadgerDB) ReadWriter ¶
func (b *BadgerDB) ReadWriter() db.DBReadWriter
func (*BadgerDB) SaveNextVersion ¶
SaveNextVersion implements DBConnection.
func (*BadgerDB) SaveVersion ¶
SaveVersion implements DBConnection.
Click to show internal directories.
Click to hide internal directories.