remove SetSqlxDB func

This commit is contained in:
xing 2024-04-06 16:44:56 +08:00
parent 3215b0c8ea
commit 9b8e597066

View File

@ -19,10 +19,6 @@ func GetSqlxDB() *sqlx.DB {
return safeDb.Load() return safeDb.Load()
} }
func SetSqlxDB(db *sqlx.DB) {
safeDb.Store(db)
}
func InitDb() (*safety.Var[*sqlx.DB], error) { func InitDb() (*safety.Var[*sqlx.DB], error) {
c := config.GetConfig() c := config.GetConfig()
dsn := c.Mysql.Dsn.GetDsn() dsn := c.Mysql.Dsn.GetDsn()