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