Copyright | (c) 2011 MailRank, Inc. |
---|---|
License | BSD3 |
Maintainer | Paul Rouse <pyr@doynton.org> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
The Param
typeclass, for rendering a parameter to a SQL query.
Documentation
How to render an element when substituting it into a query.
Plain Builder | Render without escaping or quoting. Use for non-text types
such as numbers, when you are certain that they will not
introduce formatting vulnerabilities via use of characters such
as spaces or " |
Escape SB.ByteString | Escape and enclose in quotes before substituting. Use for all text-like types, and anything else that may contain unsafe characters when rendered. |
Many [Action] | Concatenate a series of rendering actions. |
A type that may be used as a single parameter to a SQL query.
Param Bool Source | |
Param Double Source | |
Param Float Source | |
Param Int Source | |
Param Int8 Source | |
Param Int16 Source | |
Param Int32 Source | |
Param Int64 Source | |
Param Integer Source | |
Param Word Source | |
Param Word8 Source | |
Param Word16 Source | |
Param Word32 Source | |
Param Word64 Source | |
Param SB.ByteString Source | |
Param LB.ByteString Source | |
Param TimeOfDay Source | |
Param UTCTime Source | |
Param Day Source | |
Param Text Source | |
Param Text Source | |
Param Null Source | |
Param Action Source | |
Param [Char] Source | |
Param a => Param (Maybe a) Source | |
Param (Binary SB.ByteString) Source | |
Param (Binary LB.ByteString) Source | |
Param a => Param (VaArgs [a]) Source | |
Param a => Param (In [a]) Source |