23 Nov
2012
23 Nov
'12
5:56 p.m.
At Fri, 23 Nov 2012 20:25:56 +1100, Erik de Castro Lopo wrote:
Any idea how I would do the equivalent of:
SELECT COUNT(*) FROM table_name ;
with Esqueleto? I really just want the row count of the table.
Have you looked at <http://hackage.haskell.org/packages/archive/esqueleto/0.2.8/doc/html/Database-Esqueleto.html#v:countRows>? I didn’t try, but it looks promising. Francesco