MongoDBLibrary

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *mongo.Client = nil

Functions

func BulkInsert added in v1.0.2

func BulkInsert(collName string, models []mongo.WriteModel) bool

vignesh Function to insert documents in bulk

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 RestfulAPIPostMany

func RestfulAPIPostMany(collName string, filter bson.M, postDataArray []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
⌂ 换网址