Cleanup and fix raw sql
This commit is contained in:
@@ -20,5 +20,16 @@ func main() {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
fmt.Print(m)
|
||||
table, err := m.RunSql("select * from videos where id like 'gishi%' limit 1")
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
for _, c := range table.Columns {
|
||||
fmt.Println(c)
|
||||
}
|
||||
|
||||
for _, r := range table.Rows {
|
||||
fmt.Println(r.Values)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user