Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
Primary SQL type that supports efficient concatenation and variable number of parameters.
mkSQL :: ByteString -> SQL Source
Convert ByteString
to SQL
.
(<?>) :: (Show t, ToSQL t) => SQL -> t -> SQL infixr 7 Source
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 Source
Test whether an SQL
is empty.