@hackage psql-helpers0.1.0.0

A small collection of helper functions to generate postgresql queries

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]