mongo

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(connectionUrl string)

func DeleteOne added in v0.2.0

func DeleteOne(collection string, id string) *mongo.DeleteResult

func Disconnect

func Disconnect()

func Find added in v0.2.0

func Find(collection string, query bson.D) *mongo.Cursor

func FindOne added in v0.2.0

func FindOne(collection string, id string) interface{}

func GetAll added in v0.2.0

func GetAll(collection string) interface{}

func InsertOne added in v0.2.0

func InsertOne(collection string, query bson.D) string

func Test

func Test()

func UpdateOne added in v0.2.0

func UpdateOne(collection string, id string, query bson.D) *mongo.UpdateResult

Types

This section is empty.

Jump to

Keyboard shortcuts

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