impl

package
v0.0.0-...-ee222a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBadgerDB

func NewBadgerDB(directoryPath string) (IRelationalDB, error)

Types

type BadgerDB

type BadgerDB struct {
	AbstractRelDB
	Service *badger.DB
	// contains filtered or unexported fields
}

func (*BadgerDB) Exist

func (db *BadgerDB) Exist(tableName string, id string) bool

func (*BadgerDB) Print

func (db *BadgerDB) Print(tableName string) error

func (*BadgerDB) RawDelete

func (db *BadgerDB) RawDelete(prefix string, key string) bool

func (*BadgerDB) RawGet

func (db *BadgerDB) RawGet(prefix string, key string) ([]byte, bool)

func (*BadgerDB) RawIterKV

func (db *BadgerDB) RawIterKV(prefix string, action func(key string, value []byte) (stop bool))

func (*BadgerDB) RawIterKey

func (db *BadgerDB) RawIterKey(prefix string, action func(key string) (stop bool))

func (*BadgerDB) RawSet

func (db *BadgerDB) RawSet(prefix string, key string, value []byte)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL