| 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.