ferry/database/initialize.go

12 lines
166 B
Go
Raw Normal View History

2020-07-13 20:33:20 +08:00
package database
import "ferry/tools/config"
func Setup() {
dbType := config.DatabaseConfig.Dbtype
if dbType == "mysql" {
var db = new(Mysql)
db.Setup()
}
}