Documentation ¶
Overview ¶
Package datastore provides abstraction to datastore operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct { Path string `json:"path"` Operator string `json:"operator"` Value interface{} `json:"value"` }
Filter represents a filtering criteria.
type Query ¶
type Query struct { Limit int `json:"limit"` Orders []Order `json:"orders"` Filters []Filter `json:"filters"` }
Query represents the abstraction of any datastore query.
For a query with multiple Filters, they are treated as a set of criterion joined with AND condition behind the scenes.
For queries needing to use the OR condition, it is more efficient to split the query into multiple separate ones, run them separately in concurrently and combine the results afterwards.
Click to show internal directories.
Click to hide internal directories.