package
0.5.4
Repository: https://github.com/chesscomputing/golib.git
Documentation: pkg.go.dev

# README

MongoDB module

This repository contains code to deal with MongoDB operations used by FOXDEN/CHESS services. It covers read/write/update/delete APIs.

# Functions

Count gets number records from MongoDB.
Distinct gets number records from MongoDB.
ErrorRecord provides error record.
Get records from MongoDB.
GetInt64Value function to get int value from record for given key.
GetIntValue function to get int value from record for given key.
GetSingleStringValue function to get string value from record for given key.
GetSorted records from MongoDB sorted by given key with specific order.
GetStringValue function to get string value from record for given key.
GetValue function to get int value from record for given key.
InitMongoDB initializes MongoDB connection object.
Insert records into MongoDB.
InsertAny insert records into MongoDB.
InsertRecord insert record with given spec to MongoDB.
MapKeys helper function to return keys from a map.
Remove records from MongoDB.
Update inplace for given spec.
Upsert records into MongoDB.
UpsertAny upsert records into MongoDB.
UpsertRecord insert record with given spec to MongoDB.

# Constants

No description provided by the author
ServerErrorName and others provides human based definition of the error.
No description provided by the author
ServerErrorName and others provides human based definition of the error.
No description provided by the author
ServerErrorName and others provides human based definition of the error.
No description provided by the author
ServerErrorName and others provides human based definition of the error.
No description provided by the author
ServerErrorName and others provides human based definition of the error.

# Variables

Mongo holds MongoDB connection.

# Structs

Connection defines connection to MongoDB.