psql-helpers

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

Version on this page:0.1.0.0
LTS Haskell 9.14:0.1.0.0
Stackage Nightly 2017-11-21:0.1.0.0
Latest on Hackage:0.1.0.0
MIT licensed by Alexander Thiemann
Maintained by mail@athiemann.net

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]
Used by 1 package:
comments powered byDisqus