Versions in this module Expand all Collapse all v0 v0.0.1 Sep 21, 2023 Changes in this version + type DBCommon struct + func (dbc *DBCommon) ChangeDatabase(dbName string) error + func (dbc *DBCommon) SetCache(cache *caches.Cache) + type MongoConnection struct + func (mc *MongoConnection) Connect(uri string) error + func (mc *MongoConnection) ConnectWithCertificate(uri string, filePath string) error + func (mc *MongoConnection) CreateMany([]interface{}) + func (mc *MongoConnection) CreateTable(ifNotExist bool) + func (mc *MongoConnection) DeleteMany(qmap ftypes.QMap) + func (mc *MongoConnection) DeleteOne(sliceData ...interface{}) error + func (mc *MongoConnection) DisConnect() error + func (mc *MongoConnection) FindMany(interface{}) + func (mc *MongoConnection) FindOne(result interface{}, dbFusionOptions ...queryoptions.FindOptions) error + func (mc *MongoConnection) InsertOne(data interface{}) error + func (mc *MongoConnection) Limit(limit int64) connections.MongoConnection + func (mc *MongoConnection) Paginate(interface{}, ...queryoptions.FindOptions) + func (mc *MongoConnection) Project(keys map[string]bool) connections.MongoConnection + func (mc *MongoConnection) RegisterSchema() + func (mc *MongoConnection) Skip(skip int64) connections.MongoConnection + func (mc *MongoConnection) Sort(sortKey string, sortdesc ...bool) connections.MongoConnection + func (mc *MongoConnection) Table(tablename string) connections.MongoConnection + func (mc *MongoConnection) UpdateAndFindOne(data interface{}, result interface{}, upsert bool) error + func (mc *MongoConnection) UpdateMany([]interface{}) + func (mc *MongoConnection) Where(query interface{}) connections.MongoConnection + type MySql struct + func (mc *MySql) FindMany(interface{}) + func (ms *MySql) Connect(uri string) error + func (ms *MySql) ConnectWithCertificate(uri string, filePath string) error + func (ms *MySql) CreateMany([]interface{}) + func (ms *MySql) CreateTable(ifNotExist bool) + func (ms *MySql) DeleteMany(qmap ftypes.QMap) + func (ms *MySql) DeleteOne(sliceData ...interface{}) error + func (ms *MySql) DisConnect() error + func (ms *MySql) ExecuteSQL(sql string, args ...interface{}) error + func (ms *MySql) FindOne(result interface{}, dbFusionOptions ...queryoptions.FindOptions) error + func (ms *MySql) GroupBy(fieldName string) connections.SQLConnection + func (ms *MySql) Having(data interface{}) connections.SQLConnection + func (ms *MySql) InsertOne(data interface{}) error + func (ms *MySql) Join(join joins.Join) connections.SQLConnection + func (ms *MySql) Limit(limit int64) connections.SQLConnection + func (ms *MySql) Paginate(interface{}, ...queryoptions.FindOptions) + func (ms *MySql) Project(keys map[string]bool) connections.SQLConnection + func (ms *MySql) RegisterSchema() + func (ms *MySql) Skip(skip int64) connections.SQLConnection + func (ms *MySql) Sort(sortKey string, sortdesc ...bool) connections.SQLConnection + func (ms *MySql) Table(tablename string) connections.SQLConnection + func (ms *MySql) UpdateAndFindOne(data interface{}, result interface{}, upsert bool) error + func (ms *MySql) UpdateMany([]interface{}) + func (ms *MySql) Where(query interface{}) connections.SQLConnection + type SqlBase struct