db
This commit is contained in:
xiexiaojun
2019-05-18 21:39:04 +08:00
parent 3acd87d714
commit 12b5a73d6e
2 changed files with 2 additions and 1 deletions

View File

@@ -17,8 +17,10 @@ func Execute() {
rows, err := orm.Raw("show tables").Rows()
if err != nil {
fmt.Println(err)
return
}
defer rows.Close()
for rows.Next() {
var table string
rows.Scan(&table)
@@ -26,5 +28,4 @@ func Execute() {
}
fmt.Println(tables)
}