1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-20 08:49:16 +08:00
2022-08-17 09:37:30 +08:00

15 lines
233 B
Go

package db
import "github.com/1Panel-dev/1Panel/global"
func Init() {
switch global.CONF.System.DbType {
case "mysql":
global.DB = MysqlGorm()
case "sqlite":
global.DB = SqliteGorm()
default:
global.DB = MysqlGorm()
}
}