You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1Panel/backend/init/db/db.go

15 lines
241 B

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