opaleye: An SQL-generating DSL targeting PostgreSQL

[ bsd3, database, library ] [ Propose Tags ]
Versions [RSS] 0.2, 0.3, 0.3.1, 0.3.1.1, 0.3.1.2, 0.4.0.0, 0.4.1.0, 0.4.2.0, 0.5.0.0, 0.5.1.0, 0.5.1.1, 0.5.2.0, 0.5.2.1, 0.5.2.2, 0.5.3.0, 0.5.3.1, 0.5.4.0, 0.6.0.0, 0.6.1.0, 0.6.7000.0, 0.6.7001.0, 0.6.7002.0, 0.6.7003.0, 0.6.7003.1, 0.6.7004.0, 0.6.7004.1, 0.6.7004.2, 0.6.7005.0, 0.6.7006.0, 0.6.7006.1, 0.7.0.0, 0.7.1.0, 0.7.2.0, 0.7.3.0, 0.7.4.0, 0.7.5.0, 0.7.6.0, 0.7.6.1, 0.7.6.2, 0.8.0.0, 0.8.0.1, 0.8.1.0, 0.9.0.0, 0.9.1.0, 0.9.2.0, 0.9.3.0, 0.9.3.1, 0.9.3.2, 0.9.3.3, 0.9.4.0, 0.9.4.1, 0.9.5.0, 0.9.5.1, 0.9.6.0, 0.9.6.1, 0.9.6.2, 0.9.7.0, 0.10.0.0, 0.10.1.0, 0.10.1.1, 0.10.2.0, 0.10.2.1, 0.10.2.2, 0.10.2.3, 0.10.3.0 (info)
Dependencies base (>=4 && <5), contravariant (>=0.4.4 && <1.3), old-locale (>=1.0 && <1.1), postgresql-simple (>=0.3 && <0.5), pretty (>=1.1.1.0 && <1.2), product-profunctors (>=0.5 && <0.7), profunctors (>=4.0 && <4.4), semigroups (>=0.13 && <0.17), text (>=0.11 && <1.3), time (>=1.4 && <1.5), transformers (>=0.3 && <0.5), uuid (>=1.3 && <1.4) [details]
License BSD-3-Clause
Author Purely Agile
Maintainer Purely Agile
Revised Revision 1 made by tomjaguarpaw at 2014-12-11T09:36:46Z
Category Database
Home page https://github.com/tomjaguarpaw/haskell-opaleye
Source repo head: git clone https://github.com/tomjaguarpaw/haskell-opaleye
Uploaded by tomjaguarpaw at 2014-12-10T20:53:23Z
Distributions LTSHaskell:0.10.3.0, NixOS:0.10.2.1
Reverse Dependencies 8 direct, 2 indirect [details]
Downloads 31081 total (255 in the last 30 days)
Rating 2.5 (votes: 4) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for opaleye-0.3

[back to package description]

Brief introduction to Opaleye

Opaleye is a Haskell library which provides an SQL-generating embedded domain specific language for targeting Postgres. You need Opaleye if you want to use Haskell to write typesafe and composable code to query a Postgres database.

Opaleye allows you to define your database tables and write queries against them in Haskell code, and aims to be typesafe in the sense that if your code compiles then the generated SQL query will not fail at runtime. A wide range of SQL functionality is supported including inner and outer joins, restriction, aggregation, distinct, sorting and limiting, unions and differences. Facilities to insert to, update and delete from tables are also provided. Code written using Opaleye is composable at a very fine level of granularity, promoting code reuse and high levels of abstraction.

Tutorials

Please get started with Opaleye by referring to these two tutorials

Contact

Contact the author

The main author of Opaleye is Tom Ellis. He can be contacted via email.

File bugs

Please file bugs on the Opaleye GitHub issue tracking page.

Mailing list

Please join the opaleye-users mailing list.

Internal modules

Opaleye exports a number of modules named Opaleye.Internal..... They are provided in case of urgent need for access to the internals, but they are not intended to be used by API consumers and if you find yourself repeatedly accessing them this is a sign that either you or Opaleye are doing something wrong. In such a case please file a bug.

The interface of Internal modules does not follow the PVP and may break between minor releases, so be careful.

Commercial support

Commercial support for Opaleye is provided by Purely Agile.

Contributors

The Opaleye Project was founded by Tom Ellis, inspired by theoretical work on databases by David Spivak. Much of the implementation was based on ideas and code from the HaskellDB project by Daan Leijen, Conny Andersson, Martin Andersson, Mary Bergman, Victor Blomqvist, Bjorn Bringert, Anders Hockersten, Torbjorn Martin, Jeremy Shaw and Justin Bailey.

Silk (Erik Hesselink, Adam Bergmark), Karamaan (Christopher Lewis), Fynder (Renzo Carbonara, Oliver Charles) and Daniel Patterson contributed code to the project.

Joseph Abrahamson, Alfredo Di Napoli and Mietek Bak performed useful reviews of early versions which helped improve the codebase.