mongo

package
v0.0.0-...-1b09624 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Aggregate

func Aggregate(db, col string, pipeline interface{}, res interface{}) (err error)

func Close

func Close()

func Count

func Count(db, col string, selector interface{}) (ret int, err error)

func Find

func Find(db string, col string, query interface{}, sort interface{}) (ret []map[string]interface{}, err error)

func FindOne

func FindOne(db string, col string, query interface{}) (ret map[string]interface{}, err error)

func FindWithRes

func FindWithRes(db string, col string, query interface{}, sort []string, limit [2]int, res interface{}) (err error)

func Init

func Init() error

func Insert

func Insert(db, col string, doc interface{}) (err error)

func One

func One(db string, col string, query interface{}, res interface{}) (ret bool, err error)

func Remove

func Remove(db, col string, selector interface{}) (err error)

func Update

func Update(db, col string, selector interface{}, doc interface{}) (err error)

func Upsert

func Upsert(db, col string, selector interface{}, doc interface{}) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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