dbx

package
v0.0.0-...-563cc57 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpDBs

func DumpDBs(callback func(dbAbsPath string))

func NameVerify

func NameVerify(nameStr string) *errors.Error

Types

type Collection

type Collection struct {
	// contains filtered or unexported fields
}

func (*Collection) Get

func (coll *Collection) Get(key string) ([]byte, *errors.Error)

func (*Collection) Iter

func (coll *Collection) Iter(callback func(k string, byteData []byte) bool) *errors.Error

func (*Collection) MustGet

func (coll *Collection) MustGet(key string, v interface{}) *errors.Error

func (*Collection) Put

func (coll *Collection) Put(key string, data interface{}) *errors.Error

func (*Collection) Remove

func (coll *Collection) Remove(key string) *errors.Error

type DBX

type DBX struct {
	// contains filtered or unexported fields
}

func NewDBX

func NewDBX(name string, dbPath string) (*DBX, *errors.Error)

func (*DBX) Close

func (dbx *DBX) Close() *errors.Error

func (*DBX) Collection

func (dbx *DBX) Collection(name string) (*Collection, *errors.Error)

func (*DBX) IsReady

func (dbx *DBX) IsReady() bool

Jump to

Keyboard shortcuts

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