package
0.0.0-20240920122151-3c1ec2fc8a2b
Repository: https://github.com/varunamachi/libx.git
Documentation: pkg.go.dev
# Functions
C - get a handle to collection in the default database, single letter name to have nice way to transition from mgo.
CollectionWithDB - gives a reference to a collection in given database.
Connect - connects to a mongoDB instance or a cluster based on the the options provided.
No description provided by the author
ReadAllAndClose - reads all data from the cursor and closes it.
ReadOneAndClose - reads one data item from the cursor and closes it.
No description provided by the author
# Constants
ReplicaSet - A replica set cluster.
Sharded - Sharded database.
Single - No cluster, single instance.
# Type aliases
ConnType - type of cluster to connect to.