Versions in this module Expand all Collapse all v0 v0.8.0 Nov 20, 2022 v0.7.0 Aug 25, 2017 Changes in this version + type DB struct + func Open(path string, options *Options) (db *DB, err error) + func (db *DB) Batch(fn func(*bolt.Tx) error) error + func (db *DB) Close() error + func (db *DB) KeyBatch(f func(*Tx) bool) + func (db *DB) KeyCAS(key string, old_digest, new_digest c4.Digest) bool + func (db *DB) KeyDelete(key string) (c4.Digest, error) + func (db *DB) KeyDeleteAll(key_prefixs ...string) (int, error) + func (db *DB) KeyFind(digest c4.Digest) []string + func (db *DB) KeyGet(key string) (c4.Digest, error) + func (db *DB) KeyGetAll(key_prefix ...string) <-chan Entry + func (db *DB) KeySet(key string, digest c4.Digest) (c4.Digest, error) + func (db *DB) LinkDelete(relationship string, source c4.Digest, targets ...c4.Digest) (int, error) + func (db *DB) LinkDeleteAll(sources ...c4.Digest) (int, error) + func (db *DB) LinkGet(relationship string, source c4.Digest) <-chan Entry + func (db *DB) LinkGetAll(sources ...c4.Digest) <-chan Entry + func (db *DB) LinkSet(relationship string, source c4.Digest, targets ...c4.Digest) error + func (db *DB) Stats() *Stats + func (db *DB) TreeDelete(tree c4.Digest) error + func (db *DB) TreeGet(tree_digest c4.Digest) (*c4.Tree, error) + func (db *DB) TreeSet(tree *c4.Tree) error + func (db *DB) Update(fn func(*bolt.Tx) error) error + func (db *DB) View(fn func(*bolt.Tx) error) error + type Entry interface + Close func() + Err func() error + Key func() string + Relationships func() []string + Source func() c4.Digest + Stop func() + Target func() c4.Digest + Value func() c4.Digest + type Options struct + ExternalStore []string + TreeMaxSize int + TreeStrategy TreeStrategyType + type Stats struct + KeyIndexes int + Keys int + Links int + Trees int + TreesSize uint64 + type TreeStrategyType int + const TreeStrategyBalance + const TreeStrategyCache + const TreeStrategyCompute + const TreeStrategyNone + type Tx struct + func (t *Tx) Err() error + func (t *Tx) KeySet(key string, digest c4.Digest)