An open API service indexing awesome lists of open source software.

https://github.com/agrafix/psql-helpers

Haskell: A small collection of helper functions to generate postgresql queries
https://github.com/agrafix/psql-helpers

Last synced: about 2 months ago
JSON representation

Haskell: A small collection of helper functions to generate postgresql queries

Awesome Lists containing this project

README

          

# psql-helpers

[![Build Status](https://travis-ci.org/agrafix/psql-helpers.svg)](https://travis-ci.org/agrafix/psql-helpers)
[![Hackage Deps](https://img.shields.io/hackage-deps/v/psql-helpers.svg)](http://packdeps.haskellers.com/reverse/psql-helpers)

A small collection of helper functions to generate PostgreSQL queries

## Examples

### Insert

```haskell
{-# LANGUAGE OverloadedStrings #-}
import Database.PostgreSQL.Simple
import Database.PostgreSQL.Simple.ToField

foo :: Connection -> IO ()
foo conn = insert "foo_table" ["bar" @= 5, "baz" @= True]
```