Improve groupBy doc.
This commit is contained in:
parent
b20fe09755
commit
88d0202000
@ -146,9 +146,10 @@ class (Functor query, Applicative query, Monad query) =>
|
|||||||
-- return (bar ^. BarId, bar ^. BarName, countRows)
|
-- return (bar ^. BarId, bar ^. BarName, countRows)
|
||||||
-- @
|
-- @
|
||||||
--
|
--
|
||||||
-- With groupBy you can sort by aggregate functions, like so (we
|
-- With groupBy you can sort by aggregate functions, like so
|
||||||
-- used @let@ to restrict the more general `countRows` to
|
-- (we used @let@ to restrict the more general 'countRows' to
|
||||||
-- @SqlExpr (Value Int)@ to avoid ambiguity):
|
-- @SqlExpr (Value Int)@ to avoid ambiguity---the second use of
|
||||||
|
-- 'countRows' has its type restricted by the @:: Int@ below):
|
||||||
--
|
--
|
||||||
-- @
|
-- @
|
||||||
-- r \<- select $ from \\(foo `'InnerJoin`` bar) -> do
|
-- r \<- select $ from \\(foo `'InnerJoin`` bar) -> do
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user