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