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

# Functions

ClientDoc creates a client information document for use in an isMaster command.
DecodeError attempts to decode the wiremessage as an error.
IsNotFound indicates if the error is from a namespace not being found.
IsWriteConcernErrorRetryable returns true if the write concern error is retryable.
NewCommandResponseError creates a CommandResponseError.
NewNamespace returns a new Namespace for the given database and collection.
ParseNamespace parses a namespace string into a Namespace.

# Constants

BatchSize is the max number of sessions to be included in 1 endSessions command.
These constants represent the valid types of write commands.
These constants represent the valid types of write commands.
These constants represent the valid types of write commands.

# Variables

ErrDocumentTooLarge occurs when a document that is larger than the maximum size accepted by a server is passed to an insert command.
ErrEmptyCursor is a signaling error when a cursor for list indexes is empty.
ErrMultiDocCommandResponse occurs when the server sent multiple documents in response to a command.
ErrNoCommandResponse occurs when the server sent no response document to a command.
ErrNoDocCommandResponse occurs when the server indicated a response existed, but none was found.
ErrNonPrimaryRP occurs when a nonprimary read preference is used with a transaction.
ErrUnacknowledgedWrite is returned from functions that have an unacknowledged write concern.
ErrUnknownCommandFailure occurs when a command fails for an unknown reason.
NetworkError is an error label for network errors.
ReplyDocumentMismatch is an error label for OP_QUERY field mismatch errors.
TransientTransactionError is an error label for transient errors with transactions.
UnknownTransactionCommitResult is an error label for unknown transaction commit results.

# Structs

AbortTransaction represents the abortTransaction() command.
Aggregate represents the aggregate command.
BuildInfo represents the buildInfo command.
CommitTransaction represents the commitTransaction() command.
Count represents the count command.
CountDocuments represents the CountDocuments command.
CreateIndexes represents the createIndexes command.
Delete represents the delete command.
Distinct represents the disctinct command.
DropCollection represents the drop command.
DropDatabase represents the DropDatabase command.
DropIndexes represents the dropIndexes command.
EndSessions represents an endSessions command.
Error is a command execution error from the database.
Find represents the find command.
FindOneAndDelete represents the findOneAndDelete operation.
FindOneAndReplace represents the findOneAndReplace operation.
FindOneAndUpdate represents the findOneAndUpdate operation.
GetLastError represents the getLastError command.
GetMore represents the getMore command.
Handshake represents a generic MongoDB Handshake.
Insert represents the insert command.
IsMaster represents the isMaster command.
KillCursors represents the killCursors command.
ListCollections represents the listCollections command.
ListDatabases represents the listDatabases command.
ListIndexes represents the listIndexes command.
Namespace encapsulates a database and collection name, which together uniquely identifies a collection within a MongoDB cluster.
QueryFailureError is an error representing a command failure as a document.
Read represents a generic database read command.
ResponseError is an error parsing the response to a command.
StartSession represents a startSession command.
Update represents the update command.
Write represents a generic write database command.
WriteBatch represents a single batch for a write operation.

# Type aliases

WriteCommandKind is the type of command represented by a Write.