internal

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultCondition

func DefaultCondition() driver.Condition

func NewAggregate

func NewAggregate(engine driver.Client) driver.Aggregate

func NewClient

func NewClient(db string, opts ...*options.ClientOptions) (driver.Client, error)

func NewIndexes

func NewIndexes(driver driver.Client) driver.Indexes

func NewSession

func NewSession(engine driver.Client) driver.Session

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
}

type Options

type Options struct {
	UpdateEmpty bool
}

func (*Options) SetUpdateEmpty

func (o *Options) SetUpdateEmpty(e bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL