Provides a quasi-quoter for raw SQL for persistent

Version on this page:
LTS Haskell 22.16:
Stackage Nightly 2024-04-12:
Latest on Hackage:

See all snapshots persistent-qq appears in

MIT licensed and maintained by Michael Snoyman
This version can be pinned in stack with:persistent-qq-,1554

Module documentation for


Provides sqlQQ and executeQQ.


Changelog for persistent-qq

  • Support aeson-2 in the test suite #1351

  • Support GHC 9. #1265
  • Clarify lower bounds on persistent for the test suite. #1274

  • Decomposed HaskellName into ConstraintNameHS, EntityNameHS, FieldNameHS. Decomposed DBName into ConstraintNameDB, EntityNameDB, FieldNameDB respectively. #1174

  • Support persistent-2.11 in the test suite #1170


  • Add interpolation support for multirow VALUES syntax (*{rows}) #1111

  • Compatibility with latest persistent-template for test suite #1002


  • Added support for list of values in sqlQQ. #819


  • Initial release, code separated from persistent