preql: safe PostgreSQL queries using Quasiquoters

[ bsd3, database, library, postgresql ] [ Propose Tags ]

Before you Post(gres)QL, preql.

preql provides an effect type class SQL, a select quasiquoter that checks SQL syntax at compile time, and a sql quasiquoter that supports variable antiquotes, but does not attempt syntax validation.

For more details, read the quickstart or the vision

Most applications will want to import the top-level module Preql. When writing SQL instances or your own higher-level abstractions, you may want the lower-level, IO-specific functions in Preql.Wire, not all of which are re-exported from Preql.

Versions [faq] 0.1, 0.2, 0.3, 0.4, 0.5
Change log
Dependencies aeson (>=, array (>=, base (>= && <4.15), binary-parser (>=0.5.6), bytestring (>=, bytestring-strict-builder (>=, contravariant (>=1.5.2), mtl (>=2.2.2), postgresql-binary (>=0.12.2), postgresql-libpq (>=, scientific (>=, syb (>=0.7.1), template-haskell (>=, text (>=, th-lift-instances (>=0.1.17), time (>=1.9.3), transformers (>=, uuid (>=1.3.13), vector (>=, vector-sized (>=1.4.1) [details]
License BSD-3-Clause
Author Daniel Bergey
Category Database, PostgreSQL
Home page
Bug tracker
Source repo head: git clone
Uploaded by bergey at 2021-01-10T21:34:58Z
Distributions NixOS:0.5
Downloads 386 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2021-01-10 [all 1 reports]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees