mongodb

package
v0.0.0-...-08e0fe9 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection struct {
}

type DB

type DB struct {
	Driver      *mongo.Database
	Collections *Collection
	// contains filtered or unexported fields
}

func ConnectDB

func ConnectDB(url, dbname string, user string, password string) (*DB, error)

func (*DB) Close

func (db *DB) Close()

func (*DB) NewRepository

func (db *DB) NewRepository() (*repotypes.Repository, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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