Versions in this module Expand all Collapse all v0 v0.0.4 Jan 21, 2024 v0.0.3 Nov 9, 2023 Changes in this version + func BatchInsertCollection(m *mongo.Client, db string, collection string, data []interface{}) (res *mongo.InsertManyResult, err error) + func CountCollection(m *mongo.Client, db string, collection string, filter map[string]interface{}) (int64, int64, error) + func DeleteOneRecord(m *mongo.Client, db string, collection string, filter map[string]interface{}) (res *mongo.DeleteResult, err error) + func InitGormMysql(dsn string, args ...[]int) (*gorm.DB, error) + func InitMongoDb(addr string) (*mongo.Client, error) + func InitRedisClient(addr, password string, db int) (*redis.Client, error) + func InitXormMysql(dsn string, showSql bool, args ...[]int) (*xorm.Engine, error) + func InsertCollection(m *mongo.Client, db string, collection string, data interface{}) (res *mongo.InsertOneResult, err error) + func UpdateOneRecord(m *mongo.Client, db string, collection string, id string, data bson.D) (res *mongo.UpdateResult, err error)