Portability | portable |
---|---|
Stability | experimental |
Maintainer | keithshep@gmail.com |
Safe Haskell | Safe-Inferred |
Database.TxtSushi.SQLExpression
Description
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
Constructors
SelectStatement | |
Fields |
data TableExpression Source
Constructors
TableIdentifier | |
Fields | |
InnerJoin | |
Fields | |
OuterJoin | |
Fields | |
CrossJoin | |
Fields | |
SelectExpression | |
Fields |
data ColumnIdentifier Source
Constructors
ColumnIdentifier | |
Fields
|
Instances
data ColumnSelection Source
Constructors
AllColumns | |
AllColumnsFrom | |
Fields | |
ExpressionColumn | |
Fields | |
ExpressionColumnRange | |
Fields |
data Expression Source
Constructors
FunctionExpression | |
Fields | |
ColumnExpression | |
Fields | |
StringConstantExpression | |
Fields | |
IntConstantExpression | |
Fields | |
RealConstantExpression | |
Fields | |
BoolConstantExpression | |
Fields |
data SQLFunction Source
Constructors
SQLFunction | |
Fields |
data OrderByItem Source
Constructors
OrderByItem | |
Fields |
data ColumnRange Source
Constructors
ColumnRange | |
Fields |
isAggregate :: SQLFunction -> BoolSource
an aggregate function is one whose min function count is 1 and whose arg count is not fixed