database

package
v0.0.0-...-e9c9da6 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClient

func CreateClient(mongoUri string) *mongo.Client

Types

type MongoDB

type MongoDB struct {
	Name       string
	Connection *mongo.Database
}

func CreateDatabase

func CreateDatabase(client *mongo.Client, name string) *MongoDB

func (*MongoDB) CreateCollection

func (db *MongoDB) CreateCollection(collectionName string) *mongo.Collection

Jump to

Keyboard shortcuts

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