MongoDBLibrary

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *mongo.Client = nil

Functions

func RestfulAPIDeleteMany

func RestfulAPIDeleteMany(collName string, filter bson.M)

func RestfulAPIDeleteOne

func RestfulAPIDeleteOne(collName string, filter bson.M)

func RestfulAPIGetMany

func RestfulAPIGetMany(collName string, filter bson.M) []map[string]interface{}

func RestfulAPIGetOne

func RestfulAPIGetOne(collName string, filter bson.M) map[string]interface{}

func RestfulAPIJSONPatch

func RestfulAPIJSONPatch(collName string, filter bson.M, patchJSON []byte) bool

func RestfulAPIJSONPatchExtend

func RestfulAPIJSONPatchExtend(collName string, filter bson.M, patchJSON []byte, dataName string) bool

func RestfulAPIMergePatch

func RestfulAPIMergePatch(collName string, filter bson.M, patchData map[string]interface{}) bool

func RestfulAPIPost

func RestfulAPIPost(collName string, filter bson.M, postData map[string]interface{}) bool

func RestfulAPIPutMany

func RestfulAPIPutMany(collName string, filterArray []bson.M, putDataArray []map[string]interface{}) bool

func RestfulAPIPutOne

func RestfulAPIPutOne(collName string, filter bson.M, putData map[string]interface{}) bool

func RestfulAPIPutOneNotUpdate

func RestfulAPIPutOneNotUpdate(collName string, filter bson.M, putData map[string]interface{}) bool

func SetMongoDB

func SetMongoDB(setdbName string, url string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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