bdb

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2018 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BoltDB *bolt.DB
)

Functions

func Opened

func Opened() bool

Types

type DB

type DB struct{}

func (DB) Connected

func (DB) Connected() bool

func (DB) Count

func (DB) Count(bucket string) (count int)

func (DB) DbWriteTo

func (DB) DbWriteTo(w io.Writer) (err error)

func (DB) Delete

func (DB) Delete(bucket, key string) (err error)

func (DB) DeleteBucket

func (DB) DeleteBucket(bucket string) (err error)

func (DB) DeleteNested

func (DB) DeleteNested(key []byte, buckets ...[]byte) (err error)

func (DB) Get

func (DB) Get(bucket, key string) (result []byte, err error)

func (DB) GetAll

func (DB) GetAll(bucket string) (result [][]byte, err error)

func (DB) GetAllKeys

func (DB) GetAllKeys(bucket string) (data []string, err error)

func (DB) GetAllKeysByPrefix

func (DB) GetAllKeysByPrefix(bucket, _prefix string) (data []string, err error)

func (DB) GetAllUnmarshalled

func (DB) GetAllUnmarshalled(bucket string) (result []M, err error)

func (DB) GetFromNested

func (DB) GetFromNested(bucket, nestedBucket, key string) (result M, err error)

func (DB) GetNextSequenceForBucket

func (DB) GetNextSequenceForBucket(bucket string, subBucket *string) (sequence int, err error)

func (DB) GetUnmarshalled

func (DB) GetUnmarshalled(bucket, key string) (result M, err error)

func (DB) GetUnmarshalledIntoInterface

func (DB) GetUnmarshalledIntoInterface(bucket, key string, _interface interface{}) (err error)

func (DB) Inc

func (DB) Inc(bucket, key, propPath string, inc float64) (result M, err error)

func (DB) Save

func (DB) Save(bucket, key string, value interface{}) (err error)

func (DB) SaveInNested

func (DB) SaveInNested(bucket, nestedBucket, key string, value interface{}) (err error)

type M

type M map[string]interface{}

Jump to

Keyboard shortcuts

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