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
- Host: GitHub
- URL: https://github.com/agrafix/psql-helpers
- Owner: agrafix
- License: mit
- Created: 2016-03-03T16:16:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-03T16:22:09.000Z (over 10 years ago)
- Last Synced: 2026-03-12T04:06:16.069Z (3 months ago)
- Language: Haskell
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# psql-helpers
[](https://travis-ci.org/agrafix/psql-helpers)
[](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]
```