package
1.3.1
Repository: https://github.com/maxbreida/mongo-go-driver.git
Documentation: pkg.go.dev

# Functions

Aggregate creates a new AggregateOptions instance.
AutoEncryption creates a new AutoEncryptionOptions configured with default values.
BulkWrite creates a new *BulkWriteOptions instance.
ChangeStream creates a new ChangeStreamOptions instance.
Client creates a new ClientOptions instance.
ClientEncryption creates a new ClientEncryptionOptions instance.
Collection creates a new CollectionOptions instance.
Count creates a new CountOptions instance.
CreateIndexes creates a new CreateIndexesOptions instance.
Database creates a new DatabaseOptions instance.
DataKey creates a new DataKeyOptions instance.
Delete creates a new DeleteOptions instance.
Distinct creates a new DistinctOptions instance.
DropIndexes creates a new DropIndexesOptions instance.
Encrypt creates a new EncryptOptions instance.
EstimatedDocumentCount creates a new EstimatedDocumentCountOptions instance.
Find creates a new FindOptions instance.
FindOne creates a new FindOneOptions instance.
FindOneAndDelete creates a new FindOneAndDeleteOptions instance.
FindOneAndReplace creates a new FindOneAndReplaceOptions instance.
FindOneAndUpdate creates a new FindOneAndUpdateOptions instance.
GridFSBucket creates a new BucketOptions instance.
GridFSFind creates a new GridFSFindOptions instance.
GridFSName creates a new NameOptions instance.
GridFSUpload creates a new UploadOptions instance.
Index creates a new IndexOptions instance.
InsertMany creates a new InsertManyOptions instance.
InsertOne creates a new InsertOneOptions instance.
ListCollections creates a new ListCollectionsOptions instance.
ListDatabases creates a new ListDatabasesOptions instance.
ListIndexes creates a new ListIndexesOptions instance.
MergeAggregateOptions combines the given AggregateOptions instances into a single AggregateOptions in a last-one-wins fashion.
MergeAutoEncryptionOptions combines the argued AutoEncryptionOptions in a last-one wins fashion.
MergeBucketOptions combines the given BucketOptions instances into a single BucketOptions in a last-one-wins fashion.
MergeBulkWriteOptions combines the given BulkWriteOptions instances into a single BulkWriteOptions in a last-one-wins fashion.
MergeChangeStreamOptions combines the given ChangeStreamOptions instances into a single ChangeStreamOptions in a last-one-wins fashion.
MergeClientEncryptionOptions combines the argued ClientEncryptionOptions in a last-one wins fashion.
MergeClientOptions combines the given *ClientOptions into a single *ClientOptions in a last one wins fashion.
MergeCollectionOptions combines the given CollectionOptions instances into a single *CollectionOptions in a last-one-wins fashion.
MergeCountOptions combines the given CountOptions instances into a single CountOptions in a last-one-wins fashion.
MergeCreateIndexesOptions combines the given CreateIndexesOptions into a single CreateIndexesOptions in a last one wins fashion.
MergeDatabaseOptions combines the given DatabaseOptions instances into a single DatabaseOptions in a last-one-wins fashion.
MergeDataKeyOptions combines the argued DataKeyOptions in a last-one wins fashion.
MergeDeleteOptions combines the given DeleteOptions instances into a single DeleteOptions in a last-one-wins fashion.
MergeDistinctOptions combines the given DistinctOptions instances into a single DistinctOptions in a last-one-wins fashion.
MergeDropIndexesOptions combines the given DropIndexesOptions into a single DropIndexesOptions in a last-one-wins fashion.
MergeEncryptOptions combines the argued EncryptOptions in a last-one wins fashion.
MergeEstimatedDocumentCountOptions combines the given EstimatedDocumentCountOptions instances into a single EstimatedDocumentCountOptions in a last-one-wins fashion.
MergeFindOneAndDeleteOptions combines the given FindOneAndDeleteOptions instances into a single FindOneAndDeleteOptions in a last-one-wins fashion.
MergeFindOneAndReplaceOptions combines the given FindOneAndReplaceOptions instances into a single FindOneAndReplaceOptions in a last-one-wins fashion.
MergeFindOneAndUpdateOptions combines the given FindOneAndUpdateOptions instances into a single FindOneAndUpdateOptions in a last-one-wins fashion.
MergeFindOneOptions combines the given FindOneOptions instances into a single FindOneOptions in a last-one-wins fashion.
MergeFindOptions combines the given FindOptions instances into a single FindOptions in a last-one-wins fashion.
MergeGridFSFindOptions combines the given GridFSFindOptions instances into a single GridFSFindOptions in a last-one-wins fashion.
MergeIndexOptions combines the given IndexOptions into a single IndexOptions in a last-one-wins fashion.
MergeInsertManyOptions combines the givent InsertManyOptions instances into a single InsertManyOptions in a last one wins fashion.
MergeInsertOneOptions combines the given InsertOneOptions instances into a single InsertOneOptions in a last-one-wins fashion.
MergeListCollectionsOptions combines the given ListCollectionsOptions instances into a single *ListCollectionsOptions in a last-one-wins fashion.
MergeListDatabasesOptions combines the given ListDatabasesOptions instances into a single *ListDatabasesOptions in a last-one-wins fashion.
MergeListIndexesOptions combines the given ListIndexesOptions instances into a single *ListIndexesOptions in a last-one-wins fashion.
MergeNameOptions combines the given NameOptions instances into a single *NameOptions in a last-one-wins fashion.
MergeReplaceOptions combines the given ReplaceOptions instances into a single ReplaceOptions in a last-one-wins fashion.
MergeRunCmdOptions combines the given RunCmdOptions instances into one *RunCmdOptions in a last-one-wins fashion.
MergeSessionOptions combines the given SessionOptions instances into a single SessionOptions in a last-one-wins fashion.
MergeTransactionOptions combines the given TransactionOptions instances into a single TransactionOptions in a last-one-wins fashion.
MergeUpdateOptions combines the given UpdateOptions instances into a single UpdateOptions in a last-one-wins fashion.
MergeUploadOptions combines the given UploadOptions instances into a single UploadOptions in a last-one-wins fashion.
Replace creates a new ReplaceOptions instance.
RunCmd creates a new RunCmdOptions instance.
Session creates a new SessionOptions instance.
Transaction creates a new TransactionOptions instance.
Update creates a new UpdateOptions instance.

# Constants

After specifies that findAndUpdate should return the document as it is after the update.
Before specifies that findAndUpdate should return the document as it was before the update.
Default does not include a document copy.
NonTailable specifies that a cursor should close after retrieving the last data.
Tailable specifies that a cursor should not close when the last data is retrieved and can be resumed later.
TailableAwait specifies that a cursor should not close when the last data is retrieved and that it should block for a certain amount of time for new data before returning no data.
UpdateLookup includes a delta describing the changes to the document and a copy of the entire document that was changed.

# Variables

DefaultCausalConsistency is the default value for the CausalConsistency option.
DefaultChunkSize is the default size of each file chunk in bytes (255 KiB).
DefaultName is the default name for a GridFS bucket.
DefaultOrdered is the default value for the Ordered option in BulkWriteOptions.
DefaultRevision is the default revision number for a download by name operation.

# Structs

AggregateOptions represents options that can be used to configure an Aggregate operation.
ArrayFilters is used to hold filters for the array filters CRUD option.
AutoEncryptionOptions represents options used to configure auto encryption/decryption behavior for a mongo.Client instance.
BucketOptions represents options that can be used to configure GridFS bucket.
BulkWriteOptions represents options that can be used to configure a BulkWrite operation.
ChangeStreamOptions represents options that can be used to configure a Watch operation.
ClientEncryptionOptions represents all possible options used to configure a ClientEncryption instance.
ClientOptions contains options to configure a Client instance.
Collation allows users to specify language-specific rules for string comparison, such as rules for lettercase and accent marks.
CollectionOptions represents options that can be used to configure a Collection.
CountOptions represents options that can be used to configure a CountDocuments operation.
CreateIndexesOptions represents options that can be used to configure IndexView.CreateOne and IndexView.CreateMany operations.
Credential can be used to provide authentication options when configuring a Client.
DatabaseOptions represents options that can be used to configure a Database.
DataKeyOptions represents all possible options used to create a new data key.
DeleteOptions represents options that can be used to configure DeleteOne and DeleteMany operations.
DistinctOptions represents options that can be used to configure a Distinct operation.
DropIndexesOptions represents options that can be used to configure IndexView.DropOne and IndexView.DropAll operations.
EncryptOptions represents options to explicitly encrypt a value.
EstimatedDocumentCountOptions represents options that can be used to configure an EstimatedDocumentCount operation.
FindOneAndDeleteOptions represents options that can be used to configure a FindOneAndDelete operation.
FindOneAndReplaceOptions represents options that can be used to configure a FindOneAndReplace instance.
FindOneAndUpdateOptions represents options that can be used to configure a FindOneAndUpdate options.
FindOneOptions represents options that can be used to configure a FindOne operation.
FindOptions represents options that can be used to configure a Find operation.
GridFSFindOptions represents options that can be used to configure a GridFS Find operation.
IndexOptions represents options that can be used to configure a new index created through the IndexView.CreateOne or IndexView.CreateMany operations.
InsertManyOptions represents options that can be used to configure an InsertMany operation.
InsertOneOptions represents options that can be used to configure an InsertOne operation.
ListCollectionsOptions represents options that can be used to configure a ListCollections operation.
ListDatabasesOptions represents options that can be used to configure a ListDatabases operation.
ListIndexesOptions represents options that can be used to configure an IndexView.List operation.
MarshalError is returned when attempting to transform a value into a document results in an error.
NameOptions represents options that can be used to configure a GridFS DownloadByName operation.
ReplaceOptions represents options that can be used to configure a ReplaceOne operation.
RunCmdOptions represents options that can be used to configure a RunCommand operation.
SessionOptions represents options that can be used to configure a Session.
TransactionOptions represents options that can be used to configure a transaction.
UpdateOptions represents options that can be used to configure UpdateOne and UpdateMany operations.
UploadOptions represents options that can be used to configure a GridFS upload operation.

# Interfaces

ContextDialer is an interface that can be implemented by types that can create connections.

# Type aliases

CursorType specifies whether a cursor should close when the last data is retrieved.
FullDocument specifies whether a change stream should include a copy of the entire document that was changed from some time after the change occurred.
ReturnDocument specifies whether a findAndUpdate operation should return the document as it was before the update or as it is after the update.