mongodb

package module
v0.0.0-...-d83d3f7 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDbContext

func CreateDbContext(database, collection string, session mongo.Session) db.DbContext

CreateDbContext creates a new database object to create, update, fetch, delete, query entities within a database. the database parameter should be the name of the mongodb database name to connect to when calling `Client().Database()`. Collectin parameter should be the collection in the mongodb database that is used to store information. Used when calling Client().Database(dbname).Collection(collectionName)

Types

This section is empty.

Jump to

Keyboard shortcuts

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