Versions in this module Expand all Collapse all v0 v0.2.1 Mar 31, 2019 Changes in this version + var ErrAlreadyExists = errors.New("cete: already exists") + var ErrBadIdentifier = errors.New("cete: bad identifier") + var ErrCounterChanged = errors.New("cete: counter changed") + var ErrEndOfRange = errors.New("cete: end of range") + var ErrIndexError = errors.New("cete: index error") + var ErrNotFound = errors.New("cete: not found") + type Bounds int + var MaxValue Bounds = (1 << 63) - 1 + var MinValue Bounds = (-1 << 63) + type DB struct + func Open(path string, opts ...badger.Options) (*DB, error) + func (d *DB) Close() + func (d *DB) NewTable(name string, keyCompression ...bool) error + func (d *DB) Table(tableName string) *Table + func (d *DB) Tables() []string + type Document struct + func (v Document) Decode(dst interface{}) error + func (v Document) QueryAll(query string) []interface{} + func (v Document) QueryBytes(query string) []byte + func (v Document) QueryFloat64(query string) float64 + func (v Document) QueryInt(query string) int + func (v Document) QueryInt64(query string) int64 + func (v Document) QueryOne(query string) interface{} + func (v Document) QueryString(query string) string + func (v Document) QueryTime(query string) time.Time + type Index struct + func (i *Index) All(reverse ...bool) *Range + func (i *Index) Between(lower, upper interface{}, reverse ...bool) *Range + func (i *Index) CountBetween(lower, upper interface{}) int64 + func (i *Index) Drop() error + func (i *Index) GetAll(key interface{}) *Range + func (i *Index) One(key interface{}, dst interface{}) (string, uint64, error) + type Name string + func (n Name) Hex() string + type Range struct + func (r *Range) All(dst interface{}) error + func (r *Range) Close() + func (r *Range) Count() (int64, error) + func (r *Range) Counter() uint64 + func (r *Range) Decode(dst interface{}) error + func (r *Range) Do(operation func(key string, counter uint64, doc Document) error, workers ...int) error + func (r *Range) Document() Document + func (r *Range) Error() error + func (r *Range) Filter(filter func(doc Document) (bool, error), workers ...int) *Range + func (r *Range) Key() string + func (r *Range) Limit(n int64) *Range + func (r *Range) Next() bool + func (r *Range) Skip(n int) *Range + func (r *Range) Unique() *Range + type Table struct + func (t *Table) All(reverse ...bool) *Range + func (t *Table) Between(lower interface{}, upper interface{}, reverse ...bool) *Range + func (t *Table) CountBetween(lower, upper interface{}) int64 + func (t *Table) Delete(key string, counter ...uint64) error + func (t *Table) Drop() error + func (t *Table) Get(key string, dst interface{}) (uint64, error) + func (t *Table) Index(index string) *Index + func (t *Table) Indexes() []string + func (t *Table) NewIndex(name string) error + func (t *Table) Set(key string, value interface{}, counter ...uint64) error + func (t *Table) Update(key string, handler interface{}) error