mirror of
https://gitee.com/johng/gf
synced 2026-06-23 08:29:25 +08:00
21 lines
219 B
Go
21 lines
219 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/gogf/gf/frame/g"
|
|
)
|
|
|
|
func main() {
|
|
db := g.DB()
|
|
db.SetDebug(true)
|
|
|
|
r, e := db.Table("test").All()
|
|
if e != nil {
|
|
panic(e)
|
|
}
|
|
if r != nil {
|
|
fmt.Println(r.ToList())
|
|
}
|
|
}
|