Versions in this module Expand all Collapse all v1 v1.3.3 Mar 19, 2026 v1.3.2 Mar 19, 2026 Changes in this version + const COLLATION_STRENGTH_DEFAULT + const COLLATION_STRENGTH_IGNORE_CASE + const COLLATION_STRENGTH_IGNORE_DIACRITICS_AND_CASE + var Client *mongo.Client = nil + func Drop(collName string) error + func RestfulAPICount(collName string, filter bson.M) (int64, error) + func RestfulAPIDeleteMany(collName string, filter bson.M, argOpt ...interface{}) error + func RestfulAPIDeleteOne(collName string, filter bson.M, argOpt ...interface{}) error + func RestfulAPIGetMany(collName string, filter bson.M, argOpt ...interface{}) ([]map[string]interface{}, error) + func RestfulAPIGetOne(collName string, filter bson.M, argOpt ...interface{}) (result map[string]interface{}, err error) + func RestfulAPIJSONPatch(collName string, filter bson.M, patchJSON []byte, argOpt ...interface{}) error + func RestfulAPIJSONPatchExtend(collName string, filter bson.M, patchJSON []byte, dataName string, ...) error + func RestfulAPIMergePatch(collName string, filter bson.M, patchData map[string]interface{}, ...) error + func RestfulAPIPost(collName string, filter bson.M, postData map[string]interface{}, ...) (bool, error) + func RestfulAPIPostMany(collName string, filter bson.M, postDataArray []interface{}) error + func RestfulAPIPullOne(collName string, filter bson.M, putData map[string]interface{}, ...) error + func RestfulAPIPutMany(collName string, filterArray []bson.M, putDataArray []map[string]interface{}, ...) error + func RestfulAPIPutOne(collName string, filter bson.M, putData map[string]interface{}, ...) (bool, error) + func RestfulAPIPutOneNotUpdate(collName string, filter bson.M, putData map[string]interface{}, ...) (bool, error) + func SetMongoDB(setdbName string, url string) error