remove SetSqlxDB func
This commit is contained in:
parent
3215b0c8ea
commit
9b8e597066
|
@ -19,10 +19,6 @@ func GetSqlxDB() *sqlx.DB {
|
|||
return safeDb.Load()
|
||||
}
|
||||
|
||||
func SetSqlxDB(db *sqlx.DB) {
|
||||
safeDb.Store(db)
|
||||
}
|
||||
|
||||
func InitDb() (*safety.Var[*sqlx.DB], error) {
|
||||
c := config.GetConfig()
|
||||
dsn := c.Mysql.Dsn.GetDsn()
|
||||
|
|
Loading…
Reference in New Issue
Block a user