Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides functions to consume data types that represent database objects (e.g. Relation, Schema, SqlQuery) and produces SQL Statements.
Any function that outputs a SQL fragment should be in this module.
Documentation
addRelations :: Schema -> [Relation] -> Maybe ReadRequest -> ReadRequest -> Either Text ReadRequest Source
callProc :: QualifiedIdentifier -> Object -> PStmt Source
createReadStatement :: SqlQuery -> Maybe NonnegRange -> Bool -> Bool -> Bool -> Stmt Postgres Source
createWriteStatement :: SqlQuery -> SqlQuery -> Bool -> Bool -> [Text] -> Bool -> Payload -> Stmt Postgres Source
operators :: [(Text, SqlFragment)] Source
pgFmtLit :: SqlFragment -> SqlFragment Source
requestToQuery :: Schema -> DbRequest -> SqlQuery Source