Documentation ¶
Index ¶
- func DefaultCondition() driver.Condition
- func NewAggregate(engine driver.Client) driver.Aggregate
- func NewClient(db string, opts ...*options.ClientOptions) (driver.Client, error)
- func NewIndexes(driver driver.Client) driver.Indexes
- func NewSession(engine driver.Client) driver.Session
- type ClientOptions
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultCondition ¶
Types ¶
type ClientOptions ¶
type ClientOptions interface { // SetArrayFilters sets the value for the ArrayFilters field. SetArrayFilters(filters options.ArrayFilters) driver.Session // SetOrdered sets the value for the Ordered field. SetOrdered(ordered bool) driver.Session // SetBypassDocumentValidation sets the value for the BypassDocumentValidation field. SetBypassDocumentValidation(b bool) driver.Session // SetReturnDocument sets the value for the ReturnDocument field. SetReturnDocument(rd options.ReturnDocument) driver.Session // SetUpsert sets the value for the Upsert field. SetUpsert(b bool) driver.Session // SetCollation sets the value for the Collation field. SetCollation(collation *options.Collation) driver.Session // SetMaxTime sets the value for the MaxTime field. SetMaxTime(d time.Duration) driver.Session // SetProjection sets the value for the Projection field. SetProjection(projection interface{}) driver.Session // SetSort sets the value for the Sort field. SetSort(sort interface{}) driver.Session // SetHint sets the value for the Hint field. SetHint(hint interface{}) driver.Session }
Click to show internal directories.
Click to hide internal directories.