| Copyright | (c) 2011 MailRank Inc. |
|---|---|
| License | BSD3 |
| Maintainer | Paul Rouse <pyr@doynton.org> |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell98 |
Database.MySQL.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.
Minimal complete definition
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 ByteString # | |
| Param Text # | |
| Param Text # | |
| 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 (VaArgs [a]) # | |
| Param a => Param (In [a]) # | |
| Param a => Param (In (Set a)) # | |