psql-helpers: A small collection of helper functions to generate postgresql queries

[ library, mit, web ] [ Propose Tags ] [ Report a vulnerability ]

Please see README.md


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Dependencies base (>=4.7 && <5), postgresql-simple [details]
License MIT
Copyright 2015 Alexander Thiemann <mail@athiemann.net>
Author Alexander Thiemann
Maintainer mail@athiemann.net
Category Web
Home page http://github.com/agrafix/psql-helpers#readme
Source repo head: git clone https://github.com/agrafix/psql-helpers
Uploaded by AlexanderThiemann at 2016-03-03T17:45:53Z
Distributions LTSHaskell:0.1.0.0, NixOS:0.1.0.0, Stackage:0.1.0.0
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1313 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-03-03 [all 1 reports]

Readme for psql-helpers-0.1.0.0

[back to package description]

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]