Documentation ¶
Index ¶
- Constants
- func Create(addr string, opt graph.Options) (nosql.Database, error)
- func Open(addr string, opt graph.Options) (nosql.Database, error)
- type DB
- func (db *DB) BatchInsert(col string) nosql.DocWriter
- func (db *DB) Close() error
- func (db *DB) Delete(col string) nosql.Delete
- func (db *DB) EnsureIndex(ctx context.Context, col string, primary nosql.Index, secondary []nosql.Index) error
- func (db *DB) FindByKey(ctx context.Context, col string, key nosql.Key) (nosql.Document, error)
- func (db *DB) Insert(ctx context.Context, col string, key nosql.Key, d nosql.Document) (nosql.Key, error)
- func (db *DB) Query(col string) nosql.Query
- func (db *DB) Update(col string, key nosql.Key) nosql.Update
- type Delete
- type Iterator
- type Query
- type Update
Constants ¶
View Source
const Type = "mongo"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) EnsureIndex ¶
type Delete ¶
type Delete struct {
// contains filtered or unexported fields
}
func (*Delete) WithFields ¶
func (d *Delete) WithFields(filters ...nosql.FieldFilter) nosql.Delete
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func (*Query) Iterate ¶
func (q *Query) Iterate() nosql.DocIterator
func (*Query) WithFields ¶
func (q *Query) WithFields(filters ...nosql.FieldFilter) nosql.Query
Click to show internal directories.
Click to hide internal directories.