psql-helpers

A small collection of helper functions to generate postgresql queries

http://github.com/agrafix/psql-helpers#readme

LTS Haskell 23.0:0.1.0.0
Stackage Nightly 2024-12-13:0.1.0.0
Latest on Hackage:0.1.0.0

See all snapshots psql-helpers appears in

MIT licensed by Alexander Thiemann
Maintained by [email protected]
This version can be pinned in stack with:psql-helpers-0.1.0.0@sha256:37b36b12ed0630e57cb5f6e0193a9906019d12ea11455ec8854531f5bb1e8175,852

Module documentation for 0.1.0.0

psql-helpers

Build Status Hackage Deps

A small collection of helper functions to generate PostgreSQL queries

Examples

Insert

{-# LANGUAGE OverloadedStrings #-}
import           Database.PostgreSQL.Simple
import           Database.PostgreSQL.Simple.ToField

foo :: Connection -> IO ()
foo conn = insert "foo_table" ["bar" @= 5, "baz" @= True]