Documentation ¶
Index ¶
- Variables
- func Close(dber *sql.DB)
- func DbClose(dber *sql.DB)
- func MysqlOpenDb(TenantsDB sysmdel.Tenants) (tenant *gorm.DB, dber *sql.DB, mysqlStr string)
- func OpenDB(dsn string, maxIdleConns, maxOpenConns int) (db *gorm.DB, dber *sql.DB)
- func SetDb(c request.Context) (tenant *gorm.DB, dber *sql.DB)
- func SetTenantDB(TenantId int64) (db *gorm.DB, dber *sql.DB)
- type TenantInfoDB
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TenantsDBMutex sync.Mutex TenantsDBMaps = make([]*TenantInfoDB, 0) )
Functions ¶
func MysqlOpenDb ¶ added in v1.0.5
Types ¶
Click to show internal directories.
Click to hide internal directories.