narc-0.1: Query SQL databases using Nested Relational Calculus embedded in Haskell.

Narc.SQL

Synopsis

Documentation

data Op Source

Constructors

Eq 
Less 
Plus 
Minus 
Times 
Divide 

Instances

data UnOp Source

Constructors

Min 
Max 
Count 
Sum 
Average 

Instances

data Query Source

Query: the type of SQL queries (select R from Ts where B) (This is unpleasant; it should probably be organized into various syntactic classes.)

Instances

sizeQueryExact :: Query -> IntegerSource

sizeQuery approximates the size of a query by calling giving up | its node count past a certain limit (currently limit = 100, below).

sizeQuery :: Query -> IntegerSource

sizeQuery approximates the size of a query by calling giving up | its node count past a certain limit (currently limit = 100, below).

groundQuery :: Query -> BoolSource

a groundQuery is a *real* SQL query--one without variables or appl'ns.

groundQueryExpr :: Query -> BoolSource

a groundQueryExpr is an atomic-type expression.