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

Erik de Castro Lopo mle+hs at mega-nerd.com
Fri Nov 23 12:04:20 CET 2012

Francesco Mazzoli wrote:

> 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.

The examples in that section still suggest that the SELECT statement
that is run against the database returns an element for each row
whereas the what I'm hoping for is a single element returned, the
row count.

Erik de Castro Lopo

More information about the web-devel mailing list