Categorygithub.com/daspoet/mongodialect
modulepackage
0.0.0-20210526202401-b69267b55557
Repository: https://github.com/daspoet/mongodialect.git
Documentation: pkg.go.dev

# README

mongodialect

Wrapper for generic access to a MongoDB database. Supports finding, inserting, updating and deleting documents from collections.

# Packages

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

# Functions

InitialiseNewRepository builds all components needed for and combines them into a Repository.
NewDatabaseURL creates a new URL for connecting to a MongoDB database.
NewDriver returns a new driver.
NewRepository returns a new Repository upon validating the given base type and Driver.

# Variables

ErrCollectionEmpty occurs when the name of a given collection is empty.
ErrDocumentNotFound occurs when a lookup does not yield a result.
ErrDriverNil occurs when a given driver is nil.
ErrMultipleMatches occurs when a lookup using a given ID yields more than one result.

# Structs

A Driver is a wrapper for connecting to a MongoDB database.
A Repository wraps the Driver and provides functionality for performing operations on the collections of a MongoDB database.