|
| Database.HaskellDB.PrimQuery | | Portability | non portable | | Stability | experimental | | Maintainer | haskelldb-users@lists.sourceforge.net |
|
|
|
|
|
| Description |
| PrimQuery defines the datatype of relational expressions
(PrimQuery) and some useful functions on PrimQuery's
|
|
| Synopsis |
|
| type TableName = String | | | type Attribute = String | | | type Scheme = [Attribute] | | | type Assoc = [(Attribute, PrimExpr)] | | | | | | | | | | | data OrderExpr = OrderExpr OrderOp PrimExpr | | | | | | | | | | | | | extend :: Assoc -> PrimQuery -> PrimQuery | | | times :: PrimQuery -> PrimQuery -> PrimQuery | | | attributes :: PrimQuery -> Scheme | | | attrInExpr :: PrimExpr -> Scheme | | | attrInOrder :: [OrderExpr] -> Scheme | | | substAttr :: Assoc -> PrimExpr -> PrimExpr | | | isAggregate :: PrimExpr -> Bool | | | foldPrimQuery :: (t, TableName -> Scheme -> t, Assoc -> t -> t, PrimExpr -> t -> t, RelOp -> t -> t -> t, Assoc -> t -> t, SpecialOp -> t -> t) -> PrimQuery -> t | | | foldPrimExpr :: (Attribute -> t, Literal -> t, BinOp -> t -> t -> t, UnOp -> t -> t, AggrOp -> t -> t, [(t, t)] -> t -> t, [t] -> t) -> PrimExpr -> t |
|
|
|
| Type Declarations
|
|
| Types
|
|
|
|
|
|
|
|
|
|
| Data types
|
|
|
| Constructors | | Instances | |
|
|
|
| Constructors | | Times | | | Union | | | Intersect | | | Divide | | | Difference | |
| Instances | |
|
|
|
| Constructors | | Instances | |
|
|
|
| Constructors | | Instances | |
|
|
|
| Constructors | | Instances | |
|
|
|
| Constructors | | OpEq | | | OpLt | | | OpLtEq | | | OpGt | | | OpGtEq | | | OpNotEq | | | OpAnd | | | OpOr | | | OpLike | | | OpIn | | | OpOther String | | | OpCat | | | OpPlus | | | OpMinus | | | OpMul | | | OpDiv | | | OpMod | | | OpBitNot | | | OpBitAnd | | | OpBitOr | | | OpBitXor | | | OpAsg | |
| Instances | |
|
|
|
| Constructors | | OpNot | | | OpIsNull | | | OpIsNotNull | | | OpLength | | | UnOpOther String | |
| Instances | |
|
|
|
| Constructors | | Instances | |
|
|
|
| Constructors | | AggrCount | | | AggrSum | | | AggrAvg | | | AggrMin | | | AggrMax | | | AggrStdDev | | | AggrStdDevP | | | AggrVar | | | AggrVarP | | | AggrOther String | |
| Instances | |
|
|
|
| Constructors | | Instances | |
|
|
| Function declarations
|
|
|
| Creates a projection of some attributes while
keeping all other attributes in the relation visible too.
|
|
|
| Takes the cartesian product of two queries.
|
|
|
| Returns the schema (the attributes) of a query
|
|
|
| Returns all attributes in an expression.
|
|
|
| Returns all attributes in a list of ordering expressions.
|
|
|
| Substitute attribute names in an expression.
|
|
|
|
|
| Fold on PrimQuery
|
|
|
| Fold on PrimExpr
|
|
| Produced by Haddock version 2.6.0 |