| Copyright | 2016 Dylan Simon |
|---|---|
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Database.PostgreSQL.Typed.SQLToken
Description
Parsing of SQL statements to safely identify placeholders. Supports both dollar-placeholders and question marks for HDBC.
Documentation
A parsed SQL token.
Constructors
| SQLToken String | Raw (non-markup) SQL string |
| SQLParam Int | A "$N" parameter placeholder (this is the only non-string-preserving token: "$012" becomes "$12") |
| SQLExpr String | A "${expr}" expression placeholder |
| SQLQMark Bool | A possibly-escaped question-mark: False for "?" or True for "\?" |