Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (r *Client) Close() error
- func (r *Client) Create(ns string, item interface{}) (err error)
- func (r *Client) Delete(ns string, item interface{}) error
- func (r *Client) Deletes(ctx context.Context, q Query) (err error)
- func (r *Client) Exists(ctx context.Context, q Query) (exist bool, err error)
- func (r *Client) Get(ctx context.Context, q Query) (item interface{}, err error)
- func (r *Client) Migrate(namespaces map[string]interface{}, dropOnIndexesConflict bool) error
- func (r *Client) Query(ns string) Query
- func (r *Client) Update(ns string, item interface{}) (err error)
- func (r *Client) Updates(ctx context.Context, q Query) error
- type Config
- type Query
Constants ¶
View Source
const ( EQ = reindexer.EQ // = GT = reindexer.GT // > LT = reindexer.LT // < GE = reindexer.GE // >= (GT|EQ) LE = reindexer.LE // <= (LT|EQ) SET = reindexer.SET // one of set in [] ALLSET = reindexer.ALLSET // all of set in [] RANGE = reindexer.RANGE // value in RANGE from,to ANY = reindexer.ANY // any value EMPTY = reindexer.EMPTY // empty value or len(value array) == 0 LIKE = reindexer.LIKE // string like pattern )
Variables ¶
View Source
var ( ErrPrimaryKey = errors.New("primary key error") ErrNoAffected = errors.New("no affected rows") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.