Слияние кода завершено, страница обновится автоматически
I just want to get the row number of a table, so I do this
db := NewDb(xxx, xxx, xxx)
tbl := db.Table("xxx")
log.Printf("Row Num: %d\n", tbl.Count())
but, the result is always 0, that sounds strange.
maybe something is wrong, then I just check the db.Query method, do such changes:
//var ref interface{}
tmpItf[i] = new(string)
then re-run it, the right result comes out.
Please check this, thanks.