Copyright | (c) 2011-2012 Leon P Smith (c) 2018 Janne Hellsten |
---|---|
License | BSD3 |
Maintainer | Janne Hellsten <jjhellst@gmail.com> |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
The sql
quasiquoter, for writing large SQL
statements.
- sql :: QuasiQuoter
Documentation
sql :: QuasiQuoter Source #
A quasiquoter for writing big SQL
queries.
One should consider turning on the -XQuasiQuotes
pragma in that module:
myQuery = query conn [sql| SELECT * FROM users WHERE jobTitle = ? |] jobTitle