Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module constructs single SQL statements that can be parametrized and prepared.
- It consumes the SqlQuery types generated by the QueryBuilder module.
- It generates the body format and some headers of the final HTTP response.
TODO: Currently, createReadStatement is not using prepared statements. See https://github.com/PostgREST/postgrest/issues/718.
Documentation
createWriteStatement :: Snippet -> Snippet -> Bool -> Bool -> Bool -> PreferRepresentation -> [Text] -> Bool -> Statement () ResultsWithCount Source #
createReadStatement :: Snippet -> Snippet -> Bool -> Bool -> Bool -> Maybe FieldName -> Bool -> Statement () ResultsWithCount Source #