narc: Query SQL databases using Nested Relational Calculus embedded in Haskell.
Narc is an embedded language for querying SQL databases, which permits using the "nested relational" model, a more flexible model than the traditional relational model of SQL databases. In spite of this richer data model, queries are transformed into SQL to run against standard databases.
To use the language, express a query using the combinators
like foreach
, table
, having
, singleton
and so on.
Wrap this in a call to narcToSQLString
to get a string
that can be sent to a SQL database.
To send a query directly to an HDBC connection, import
the module Database.Narc.HDBC
and use its run
function,
passing it an HDBC connection and a Narc query. The result
is an IO action that returns a 2-D list of result values
in HDBC's usual format.
Modules
- Database
- Database.Narc
- Database.Narc.HDBC
- Database.Narc.SQL
- Database.Narc.Test
- Database.Narc.Type
- Database.Narc
Downloads
- narc-0.1.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1, 0.1.1, 0.1.2, 0.1.3 |
---|---|
Dependencies | base (<0), HDBC, HUnit, mtl, QuickCheck, random [details] |
License | BSD-3-Clause |
Author | Ezra e. k. Cooper |
Maintainer | ezra@ezrakilty.net |
Category | Database |
Home page | http://ezrakilty.net/projects/narc |
Uploaded | by EzraCooper at 2011-08-01T19:59:39Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 3159 total (10 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs not available [build log] All reported builds failed as of 2016-12-27 [all 6 reports] |