Documentation ¶
Index ¶
- Constants
- func Traits() nosql.Traits
- 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, typ 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 Name = "elastic"
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) WithFields ¶
func (q *Query) WithFields(filters ...nosql.FieldFilter) nosql.Query
Click to show internal directories.
Click to hide internal directories.