mongodb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DFTimeout time.Duration = 20 * time.Second

Variables

This section is empty.

Functions

func FindOptions

func FindOptions() *options.FindOptions

func InsertOptions

func InsertOptions() *options.InsertManyOptions

func UpdateOption

func UpdateOption() *options.UpdateOptions

Types

type DBTool

type DBTool struct {
	DB     *mongo.Database
	Client *mongo.Client
	Ctx    context.Context
}

func Create

func Create(dburl, dbname string) (*DBTool, error)

func (*DBTool) Close

func (dbt *DBTool) Close()

Jump to

Keyboard shortcuts

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