main.go 201 B

12345678910111213
  1. package main
  2. import (
  3. "github.com/qor5/admin/example/admin"
  4. )
  5. func main() {
  6. db := admin.ConnectDB()
  7. tbs := admin.GetNonIgnoredTableNames()
  8. admin.EmptyDB(db, tbs)
  9. admin.InitDB(db, tbs)
  10. return
  11. }