| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Database.PostgreSQL.PQTypes.SQL
Documentation
Primary SQL type that supports efficient concatenation and variable number of parameters.
(<?>) :: (Show t, ToSQL t) => SQL -> t -> SQL infixr 7 #
Embed parameter value inside existing SQL. Example:
f :: Int32 -> String -> SQL f idx name = "SELECT foo FROM bar WHERE id =" <?> idx <+> "AND name =" <?> name
isSqlEmpty :: SQL -> Bool #
Test whether an SQL is empty.