package
1.3.6
Repository: https://github.com/undertreetech/waterdrop.git
Documentation: pkg.go.dev

# Functions

IsDup check if err is mongo E11000 (duplicate err).
IsErrNoDocuments check if err is no documents, simply call if err == ErrNoSuchDocuments or if err == mongo.ErrNoDocuments.
NewObjectID generates a new ObjectID.
ObjectIDFromHex creates a new ObjectID from a hex string It returns an error if the hex string is not a valid ObjectID.
Open return database instance handler.

# Variables

ErrInvalidHex indicates that a hex string cannot be converted to an ObjectID.
ErrNoSuchDocuments return if no document found.
NilObjectID is the zero value for ObjectID.

# Structs

No description provided by the author
Bulk is context for batching operations to be sent to database in a single bulk write.
No description provided by the author
Config MongoDB DSN configs.
DB encapsulation of qmgo client and database.
Query struct definition.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author