Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 582 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 582 Bytes

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]