| Portability | portable |
|---|---|
| Stability | experimental |
| Maintainer | Leon P Smith <leon@melding-monads.com> |
Database.PostgreSQL.Simple.Param
Description
The Param typeclass, for rendering a parameter to a SQL query.
Documentation
How to render an element when substituting it into a query.
Constructors
| 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 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.
Instances
| Param Bool | |
| Param Double | |
| Param Float | |
| Param Int | |
| Param Int8 | |
| Param Int16 | |
| Param Int32 | |
| Param Int64 | |
| Param Integer | |
| Param Word | |
| Param Word8 | |
| Param Word16 | |
| Param Word32 | |
| Param Word64 | |
| Param ByteString | |
| Param Text | |
| Param Text | |
| Param ByteString | |
| Param Oid | |
| Param TimeOfDay | |
| Param UTCTime | |
| Param Day | |
| Param Null | |
| Param Action | |
| Param [Char] | |
| Param a => Param (Maybe a) | |
| Param (Binary ByteString) | |
| Param (Binary ByteString) | |
| Param a => Param (In [a]) |