mirror of
https://gitee.com/johng/gf.git
synced 2024-12-05 05:37:55 +08:00
19 lines
207 B
Go
19 lines
207 B
Go
package main
|
|
|
|
import (
|
|
"github.com/gogf/gf/frame/g"
|
|
)
|
|
|
|
func main() {
|
|
db := g.DB()
|
|
db.SetDebug(true)
|
|
|
|
tables, err := db.Tables()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if tables != nil {
|
|
g.Dump(tables)
|
|
}
|
|
}
|