Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype QueryArr a b = QueryArr ((a, PrimQuery, Tag) -> (b, PrimQuery, Tag))
- type Query = QueryArr ()
- simpleQueryArr :: ((a, Tag) -> (b, PrimQuery, Tag)) -> QueryArr a b
- runQueryArr :: QueryArr a b -> (a, PrimQuery, Tag) -> (b, PrimQuery, Tag)
- runSimpleQueryArr :: QueryArr a b -> (a, Tag) -> (b, PrimQuery, Tag)
- runSimpleQueryArrStart :: QueryArr a b -> a -> (b, PrimQuery, Tag)
- runQueryArrUnpack :: Unpackspec a b -> Query a -> ([PrimExpr], PrimQuery, Tag)
- first3 :: (a1 -> b) -> (a1, a2, a3) -> (b, a2, a3)
Documentation
QueryArr a b
is analogous to a Haskell function a -> [b]
.
type Query = QueryArr () Source #
A Postgres query, i.e. some functionality that can run via SQL and produce a collection of rows.
Query a
is analogous to a Haskell value [a]
.
runQueryArrUnpack :: Unpackspec a b -> Query a -> ([PrimExpr], PrimQuery, Tag) Source #