db

package
v0.0.0-...-56574ec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountDocuments

func CountDocuments(client *mongo.Client, collectionName string, key string, value interface{}) int

func CreateClient

func CreateClient() *mongo.Client

func DeleteAll

func DeleteAll(client *mongo.Client, collectionName string) int64

func DisconnectClient

func DisconnectClient(client *mongo.Client)

func GetAny

func GetAny(client *mongo.Client, collectionName string, key string, value interface{}) []primitive.M

func GetOne

func GetOne(client *mongo.Client, collectionName string, filterItems map[string]interface{}) *mongo.SingleResult

func PutAny

func PutAny(client *mongo.Client, collectionName string, customStruct interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL