postgrest-8.0.0: REST API for any Postgres database
Safe HaskellNone
LanguageHaskell2010

PostgREST.Query.Statements

Description

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

createReadStatement :: Snippet -> Snippet -> Bool -> Bool -> Bool -> Maybe FieldName -> PgVersion -> Bool -> Statement () ResultsWithCount Source #

callProcStatement :: Bool -> Bool -> Snippet -> Snippet -> Snippet -> Bool -> Bool -> Bool -> Bool -> Maybe FieldName -> PgVersion -> Bool -> Statement () ProcResults Source #