mongodb

package
v4.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNoDocuments = "no documents"
)

Variables

This section is empty.

Functions

func Close

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

func HandleErrDuplicateValue added in v4.9.0

func HandleErrDuplicateValue(err error) error

func HandleErrNotFound added in v4.9.0

func HandleErrNotFound(err error, index string) error

func IsErrDuplicateValue added in v4.9.0

func IsErrDuplicateValue(err error) bool

func IsErrNotFound added in v4.9.0

func IsErrNotFound(err error) bool

Types

type Database added in v4.9.0

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

func Open

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

Jump to

Keyboard shortcuts

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