[web-devel] Esqueleto : SELECT COUNT(*) FROM table_name ;

Francesco Mazzoli f at mazzo.li
Fri Nov 23 10:56:37 CET 2012



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




More information about the web-devel mailing list