psql-helpers

A small collection of helper functions to generate postgresql queries http://github.com/agrafix/psql-helpers#readme

LTS Haskell 14.15:0.1.0.0
Stackage Nightly 2019-09-21: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 mail@athiemann.net

Module documentation for 0.1.0.0

This version can be pinned in stack with:psql-helpers-0.1.0.0@sha256:37b36b12ed0630e57cb5f6e0193a9906019d12ea11455ec8854531f5bb1e8175,852

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]
comments powered byDisqus