DSH: Database Supported Haskell

[ bsd3, database, library, program ] [ Propose Tags ]

This is a Haskell library for database-supported program execution. Using this library a relational database management system (RDBMS) can be used as a coprocessor for the Haskell programming language, especially for those program fragments that carry out data-intensive and data-parallel computations.

Database executable program fragments can be written using the monad comprehension notation [2] and list processing combinators from the Haskell list prelude. Note that rather than embedding a relational language into Haskell, we turn idiomatic Haskell programs into SQL queries.

DSH faithfully represents list order and nesting, and compiles the list processing combinators into relational queries. The implementation avoids unnecessary data transfer and context switching between the database coprocessor and the Haskell runtime by ensuring that the number of generated relational queries is only determined by the program fragment's type and not by the database size.

DSH can be used to allow existing Haskell programs to operate on large scale data (e.g., larger than the available heap) or query existing database resident data with Haskell.

Note that this package is flagged experimental and therefore is not suited for production use. This is a proof of concept implementation only. To learn more about DSH, our paper entitled as "Haskell Boards the Ferry: Database- Supported Program Execution for Haskell" [1] is a recommended reading. The package includes a couple of examples that demonstrate how to use DSH.

The latest release implements new features described in our work-in- progress paper entitled as "Algebraic Data Types for Language-Integrated Queries" [3].

  1. http://db.inf.uni-tuebingen.de/files/giorgidze/ifl2010.pdf

  2. http://db.inf.uni-tuebingen.de/files/giorgidze/haskell2011.pdf

  3. http://db.inf.uni-tuebingen.de/files/giorgidze/adtq.pdf

Versions [faq] 0.4,, 0.4.1, 0.4.2,, 0.4.3, 0.5, 0.5.3, 0.5.5, 0.6, 0.6.1, 0.6.2, 0.6.6, 0.7, 0.7.1, 0.7.2, 0.7.3, 0.7.4, 0.7.5, 0.7.6, 0.7.7, 0.7.8,,,,,,,,,,,,,
Dependencies array (>=0.4), base (>=4.5 && <5), bytestring (>=0.9), containers (>=0.4), csv (>=0.1), FerryCore (>=0.4), HaXml (>=1.23), HDBC (>=2.3), mtl (>=2.1), Pathfinder (>=0.5), template-haskell (>=2.7), text (>=0.11) [details]
License BSD-3-Clause
Author George Giorgidze, Alexander Ulrich, Tom Schreiber, Nils Schweinsberg and Jeroen Weijers
Maintainer giorgidze@gmail.com, jeroen.weijers@uni-tuebingen.de
Category Database
Uploaded by GeorgeGiorgidze at Thu Oct 18 13:29:11 UTC 2012
Distributions NixOS:
Downloads 19640 total (697 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees