Portability | portable |
---|---|
Stability | experimental |
Maintainer | keithshep@gmail.com |
Safe Haskell | Safe-Inferred |
SQL Expressions
- allMaybeTableNames :: Maybe TableExpression -> [String]
- data SelectStatement = SelectStatement {}
- data TableExpression
- = TableIdentifier { }
- | InnerJoin { }
- | OuterJoin { }
- | CrossJoin { }
- | SelectExpression { }
- data ColumnIdentifier = ColumnIdentifier {}
- data ColumnSelection
- = AllColumns
- | AllColumnsFrom { }
- | ExpressionColumn { }
- | ExpressionColumnRange { }
- data Expression
- = FunctionExpression { }
- | ColumnExpression { }
- | StringConstantExpression { }
- | IntConstantExpression { }
- | RealConstantExpression { }
- | BoolConstantExpression { }
- data SQLFunction = SQLFunction {}
- data OrderByItem = OrderByItem {}
- data ColumnRange = ColumnRange {}
- isAggregate :: SQLFunction -> Bool
- selectStatementContainsAggregates :: SelectStatement -> Bool
- expressionToString :: Expression -> String
- columnToString :: ColumnIdentifier -> String
Documentation
allMaybeTableNames :: Maybe TableExpression -> [String]Source
convenience function for extracting all of the table names used by the given table expression
data SelectStatement Source
represents a select statement TODO this should be moved inside the TableExpression type
data ColumnIdentifier Source
data ColumnSelection Source
data Expression Source
data SQLFunction Source
data ColumnRange Source
isAggregate :: SQLFunction -> BoolSource
an aggregate function is one whose min function count is 1 and whose arg count is not fixed