narc: Query SQL databases using Nested Relational Calculus embedded in Haskell.
|Versions||0.1, 0.1.1, 0.1.2, 0.1.3|
|Dependencies||base (==4.*), HDBC, HUnit, mtl, QuickCheck, random [details]|
|Author||Ezra e. k. Cooper|
|Uploaded||by EzraCooper at Mon Aug 1 21:25:00 UTC 2011|
|Downloads||1495 total (14 in the last 30 days)|
|Rating||(no votes yet) [estimated by rule of succession]|
|Status||Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI
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
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
Database.Narc.HDBC and use its
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.
For package maintainers and hackage trustees