Versions in this module Expand all Collapse all v0 v0.3.0 Jul 24, 2023 v0.2.0 Mar 13, 2022 v0.1.0 Mar 12, 2022 Changes in this version + const Equal + const GT + const GTE + const IndexAny + const LT + const LTE + const NotEqual + const Regexp + const StringExact + var ErrNotFound = errors.New("not found") + func CompareValues(v1, v2 Value) int + func Register(reg Registration) + func ValuesEqual(v1, v2 Value) bool + type BatchInserter interface + BatchInsert func(col string) DocWriter + type Bool bool + type Bytes []byte + type Database interface + Close func() error + Delete func(col string) Delete + EnsureIndex func(ctx context.Context, col string, primary Index, secondary []Index) error + FindByKey func(ctx context.Context, col string, key Key) (Document, error) + Insert func(ctx context.Context, col string, key Key, d Document) (Key, error) + Query func(col string) Query + Update func(col string, key Key) Update + type Delete interface + Do func(ctx context.Context) error + Keys func(keys ...Key) Delete + WithFields func(filters ...FieldFilter) Delete + type DocIterator interface + Close func() error + Doc func() Document + Err func() error + Key func() Key + Next func(ctx context.Context) bool + type DocWriter interface + Close func() error + Flush func(ctx context.Context) error + Keys func() []Key + WriteDoc func(ctx context.Context, key Key, d Document) error + func BatchInsert(db Database, col string) DocWriter + type Document map[string]Value + type FieldFilter struct + Filter FilterOp + Path []string + Value Value + func (f FieldFilter) Matches(d Document) bool + type FilterOp int + func (op FilterOp) GoString() string + func (op FilterOp) String() string + type Float float64 + type Index struct + Fields []string + Type IndexType + type IndexType int + type Int int64 + type Key []string + func GenKey() Key + func KeyFrom(fields []string, doc Document) Key + func (k Key) Value() Value + type OpenFunc func(addr string, ns string, opt Options) (Database, error) + type Options map[string]interface + func (o Options) GetString(key string, def string) string + type Query interface + Count func(ctx context.Context) (int64, error) + Iterate func() DocIterator + Limit func(n int) Query + One func(ctx context.Context) (Document, error) + WithFields func(filters ...FieldFilter) Query + type Registration struct + New OpenFunc + Open OpenFunc + Traits Traits + func ByName(name string) *Registration + func List() []Registration + type String string + type Strings []string + type Time time.Time + type Traits struct + FloatToInt bool + IntToFloat bool + Number32 bool + PageSize int + TimeInMs bool + type Update interface + Do func(ctx context.Context) error + Inc func(field string, dn int) Update + Upsert func(d Document) Update + type Value interface