Skip to content

Commit

Permalink
rmline
Browse files Browse the repository at this point in the history
  • Loading branch information
fusikai committed Apr 10, 2024
1 parent 36d9294 commit 23c468b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/model/mysql/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ func main() {

// reuse the database connection in Project or create a connection here
// if you want to use GenerateModel/GenerateModelAs, UseDB is necessary or it will panic
// db, _ := gorm.Open(mysql.Open("php_vod_web:8RQQImYH2G2esU3HqKb8@tcp(10.1.42.15:11302)/channel_permission?charset=utf8mb4&parseTime=True&loc=Local&readTimeout=5s&timeout=5s&writeTimeout=1s"))
db, _ := gorm.Open(mysql.Open(conf.GetString("database.dsn")))
g.UseDB(db)

Expand Down

0 comments on commit 23c468b

Please sign in to comment.