options

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RawAggregate = options.Aggregate
View Source
var RawChangeStream = options.ChangeStream
View Source
var RawClient = options.Client
View Source
var RawCollection = options.Collection
View Source
var RawCreateCollection = options.CreateCollection
View Source
var RawDatabase = options.Database
View Source
var RawFind = options.Find
View Source
var RawIndex = options.Index
View Source
var RawInsertMany = options.InsertMany
View Source
var RawInsertOne = options.InsertOne
View Source
var RawRemove = options.Delete
View Source
var RawReplace = options.Replace
View Source
var RawRunCommand = options.RunCmd
View Source
var RawSession = options.Session
View Source
var RawTransaction = options.Transaction
View Source
var RawUpdate = options.Update

Functions

This section is empty.

Types

type AggregateOptions

type AggregateOptions struct {
	*options.AggregateOptions
}

func Aggregate added in v1.2.3

type ChangeStreamOptions

type ChangeStreamOptions struct {
	*options.ChangeStreamOptions
}

func ChangeStream added in v1.2.3

type ClientOptions

type ClientOptions struct {
	*options.ClientOptions
}

func Client added in v1.2.3

func Client(opt *options.ClientOptions) ClientOptions

type CollectionOptions added in v1.3.0

type CollectionOptions struct {
	*options.CollectionOptions
}

func Collection added in v1.3.0

type CreateCollectionOptions

type CreateCollectionOptions struct {
	*options.CreateCollectionOptions
}

func CreateCollection added in v1.2.3

type DatabaseOptions

type DatabaseOptions struct {
	*options.DatabaseOptions
}

func Database added in v1.2.3

type FindOptions

type FindOptions struct {
	QueryHook interface{}
}

func Find added in v1.2.3

func Find(hook ...interface{}) FindOptions

type IndexModel

type IndexModel struct {
	Key []string // Index key fields; prefix name with dash (-) for descending order
	*options.IndexOptions
}

func Index added in v1.2.3

func Index(opt *options.IndexOptions, keys ...string) IndexModel

type InsertManyOptions

type InsertManyOptions struct {
	InsertHook interface{}
	*options.InsertManyOptions
}

func InsertMany added in v1.2.3

func InsertMany(opt *options.InsertManyOptions, hook ...interface{}) InsertManyOptions

type InsertOneOptions

type InsertOneOptions struct {
	InsertHook interface{}
	*options.InsertOneOptions
}

func InsertOne added in v1.2.3

func InsertOne(opt *options.InsertOneOptions, hook ...interface{}) InsertOneOptions

type RemoveOptions

type RemoveOptions struct {
	RemoveHook interface{}
	*options.DeleteOptions
}

func Remove added in v1.2.3

func Remove(opt *options.DeleteOptions, hook ...interface{}) RemoveOptions

type ReplaceOptions

type ReplaceOptions struct {
	UpdateHook interface{}
	*options.ReplaceOptions
}

func Replace added in v1.2.3

func Replace(opt *options.ReplaceOptions, hook ...interface{}) ReplaceOptions

type RunCommandOptions

type RunCommandOptions struct {
	*options.RunCmdOptions
}

func RunCommand added in v1.2.3

func RunCommand(opt *options.RunCmdOptions) RunCommandOptions

type SessionOptions

type SessionOptions struct {
	*options.SessionOptions
}

func Session added in v1.2.3

type TransactionOptions

type TransactionOptions struct {
	*options.TransactionOptions
}

func Transaction added in v1.2.3

type UpdateOptions

type UpdateOptions struct {
	UpdateHook interface{}
	*options.UpdateOptions
}

func Update added in v1.2.3

func Update(opt *options.UpdateOptions, hook ...interface{}) UpdateOptions

type UpsertOptions

type UpsertOptions struct {
	UpsertHook interface{}
	*options.ReplaceOptions
}

func Upsert added in v1.2.3

func Upsert(opt *options.ReplaceOptions, hook ...interface{}) UpsertOptions

Jump to

Keyboard shortcuts

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