mongodb

package
v4.7.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(ctx context.Context, session *MongoDB) error

func HandleDocumentNotFound

func HandleDocumentNotFound(index string, err error) error

func HandleDuplicateKeyError

func HandleDuplicateKeyError(err error) error

Types

type MongoDB

type MongoDB struct {
	*mongo.Client
	*mongo.Database
}

func Open

func Open(uri, name string) (*MongoDB, error)

Jump to

Keyboard shortcuts

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