The narc package

[Tags: bsd3, library]

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.


Properties

Versions0.1, 0.1.1, 0.1.2, 0.1.3
Dependenciesbase (==4.*), HDBC, HUnit, mtl, QuickCheck, random
LicenseBSD3
AuthorEzra e. k. Cooper
Maintainerezra@ezrakilty.net
CategoryDatabase
Home pagehttp://ezrakilty.net/projects/narc
Upload dateTue Aug 9 03:29:57 UTC 2011
Uploaded byEzraCooper
Downloads235 total (26 in last 30 days)

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees