Versions in this module Expand all Collapse all v0 v0.7.5 Nov 26, 2018 v0.7.4 Jun 3, 2018 v0.7.4-2 Nov 26, 2018 v0.7.3 Apr 23, 2018 v0.7.2 Mar 3, 2018 v0.7.1 Jan 30, 2018 Changes in this version + const Regexp + type Options struct + Number32 bool type QuadStore + func NewQuadStore(db Database, nopt *Options, opt graph.Options) (*QuadStore, error) v0.7.0 Dec 24, 2017 Changes in this version + const DefaultDBName + const Equal + const GT + const GTE + const IndexAny + const LT + const LTE + const NotEqual + const StringExact + var ErrNotFound = errors.New("not found") + func CompareValues(v1, v2 Value) int + func Init(db Database, opt graph.Options) error + func New(db Database, opt graph.Options) (graph.QuadStore, error) + func Register(name string, r 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 InitFunc func(string, graph.Options) (Database, error) + type Int int64 + type Iterator struct + func NewAllIterator(qs *QuadStore, collection string) *Iterator + func NewIterator(qs *QuadStore, collection string, constraints ...FieldFilter) *Iterator + func NewLinksToIterator(qs *QuadStore, collection string, links []Linkage) *Iterator + func (it *Iterator) Clone() graph.Iterator + func (it *Iterator) Close() error + func (it *Iterator) Contains(ctx context.Context, v graph.Value) bool + func (it *Iterator) Err() error + func (it *Iterator) Next(ctx context.Context) bool + func (it *Iterator) NextPath(ctx context.Context) bool + func (it *Iterator) Optimize() (graph.Iterator, bool) + func (it *Iterator) Reset() + func (it *Iterator) Result() graph.Value + func (it *Iterator) Size() (int64, bool) + func (it *Iterator) Sorted() bool + func (it *Iterator) Stats() graph.IteratorStats + func (it *Iterator) String() string + func (it *Iterator) SubIterators() []graph.Iterator + func (it *Iterator) TagResults(dst map[string]graph.Value) + func (it *Iterator) Tagger() *graph.Tagger + func (it *Iterator) Type() graph.Type + func (it *Iterator) UID() uint64 + type Key []string + func GenKey() Key + func KeyFrom(fields []string, doc Document) Key + func (k Key) Value() Value + type Linkage struct + Dir quad.Direction + Val NodeHash + type NewFunc func(string, graph.Options) (Database, error) + type NodeHash string + func (NodeHash) IsNode() bool + func (v NodeHash) Key() interface{} + type QuadHash [4]string + func (QuadHash) IsNode() bool + func (h QuadHash) Get(d quad.Direction) string + func (v QuadHash) Key() interface{} + type QuadStore struct + func (qs *QuadStore) ApplyDeltas(deltas []graph.Delta, ignoreOpts graph.IgnoreOpts) error + func (qs *QuadStore) Close() error + func (qs *QuadStore) NameOf(v graph.Value) quad.Value + func (qs *QuadStore) NodesAllIterator() graph.Iterator + func (qs *QuadStore) OptimizeIterator(it graph.Iterator) (graph.Iterator, bool) + func (qs *QuadStore) OptimizeShape(s shape.Shape) (shape.Shape, bool) + func (qs *QuadStore) Quad(val graph.Value) quad.Quad + func (qs *QuadStore) QuadDirection(in graph.Value, d quad.Direction) graph.Value + func (qs *QuadStore) QuadIterator(d quad.Direction, val graph.Value) graph.Iterator + func (qs *QuadStore) QuadsAllIterator() graph.Iterator + func (qs *QuadStore) Size() int64 + func (qs *QuadStore) ValueOf(s quad.Value) graph.Value + type Quads struct + Limit int64 + Links []Linkage + func (s Quads) BuildIterator(qs graph.QuadStore) graph.Iterator + func (s Quads) Optimize(r shape.Optimizer) (shape.Shape, bool) + 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 + InitFunc InitFunc + IsPersistent bool + NewFunc NewFunc + type Shape struct + Collection string + Filters []FieldFilter + Limit int64 + func (s Shape) BuildIterator(qs graph.QuadStore) graph.Iterator + func (s Shape) Optimize(r shape.Optimizer) (shape.Shape, bool) + type String string + type Strings []string + type Time time.Time + type Update interface + Do func(ctx context.Context) error + Inc func(field string, dn int) Update + Upsert func(d Document) Update + type Value interface