Closed dorajistyle closed 10 years ago
Hi JoongSeob,
SelectInt, etc are not implemented in modl
. Instead, you should use code like this:
var count int
err := dbmap.Dbx.Get(&count, "SELECT count(*) FROM table;")
For more information on how to use the Dbx
handle on dbmap, check out the documentation on sqlx.
Thanks.
Hello, I'm a newbie of Golang. I've modifed https://github.com/coopernurse/gorp#quickstart. And ran it. But I didn't find the way to get count(). How can I get count() with func (*DbMap) Select?
Regards, JoongSeob.