Safe Haskell | Safe |
---|---|
Language | Haskell98 |
- data SqlTable = SqlTable {}
- newtype SqlColumn = SqlColumn String
- type SqlName = String
- data SqlOrderNulls
- data SqlOrderDirection
- data SqlOrder = SqlOrder {}
- data SqlExpr
- = ColumnSqlExpr SqlColumn
- | CompositeSqlExpr SqlExpr String
- | BinSqlExpr String SqlExpr SqlExpr
- | PrefixSqlExpr String SqlExpr
- | PostfixSqlExpr String SqlExpr
- | FunSqlExpr String [SqlExpr]
- | AggrFunSqlExpr String [SqlExpr]
- | ConstSqlExpr String
- | CaseSqlExpr [(SqlExpr, SqlExpr)] SqlExpr
- | ListSqlExpr [SqlExpr]
- | ParamSqlExpr (Maybe SqlName) SqlExpr
- | PlaceHolderSqlExpr
- | ParensSqlExpr SqlExpr
- | CastSqlExpr String SqlExpr
- | DefaultSqlExpr
- data SqlUpdate = SqlUpdate SqlTable [(SqlColumn, SqlExpr)] [SqlExpr]
- data SqlDelete = SqlDelete SqlTable [SqlExpr]
- data SqlInsert = SqlInsert SqlTable [SqlColumn] (NonEmpty [SqlExpr])
SQL data type
Expressions in SQL statements.
ColumnSqlExpr SqlColumn | |
CompositeSqlExpr SqlExpr String | |
BinSqlExpr String SqlExpr SqlExpr | |
PrefixSqlExpr String SqlExpr | |
PostfixSqlExpr String SqlExpr | |
FunSqlExpr String [SqlExpr] | |
AggrFunSqlExpr String [SqlExpr] | Aggregate functions separate from normal functions. |
ConstSqlExpr String | |
CaseSqlExpr [(SqlExpr, SqlExpr)] SqlExpr | |
ListSqlExpr [SqlExpr] | |
ParamSqlExpr (Maybe SqlName) SqlExpr | |
PlaceHolderSqlExpr | |
ParensSqlExpr SqlExpr | |
CastSqlExpr String SqlExpr | |
DefaultSqlExpr |
Data type for SQL UPDATE statements.