narc
Version 0.1.1 revision 0 uploaded by EzraCooper.
Package meta
- Synopsis
- Query SQL databases using Nested Relational Calculus embedded in Haskell.
- Description
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 tonarcToSQLString
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 itsrun
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.- Author
- Ezra e. k. Cooper
- Bug reports
- n/a
- Category
- Database
- Copyright
- n/a
- Homepage
- http://ezrakilty.net/projects/narc
- Maintainer
- ezra@ezrakilty.net
- Package URL
- n/a
- Stability
- n/a