@hackage / psql-helpers

A small collection of helper functions to generate postgresql queries

Latest0.1.0.0

About

Metadata

  • Last updated , by AlexanderThiemann
  • License MIT
  • Categories Web Development
  • Maintained by: mail@athiemann.net

  • Lottery factor: 0

Links

Installation

Readme

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]