db

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Database *mongo.Database

Functions

func CollectionList

func CollectionList(db *mongo.Database) []string

func CollectionValidate added in v1.6.0

func CollectionValidate(db *mongo.Database, collections interface{})

func Connect

func Connect(connectionString string, dbName string, userDb string, passDb string)

Connect is for get mongo driver connection

func GetDBConnected added in v1.7.0

func GetDBConnected() *mongo.Database

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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