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] [(SqlExpr, SqlOrder)]
- | ConstSqlExpr String
- | CaseSqlExpr [(SqlExpr, SqlExpr)] SqlExpr
- | ListSqlExpr [SqlExpr]
- | ParamSqlExpr (Maybe SqlName) SqlExpr
- | PlaceHolderSqlExpr
- | ParensSqlExpr SqlExpr
- | CastSqlExpr String SqlExpr
- | DefaultSqlExpr
- | ArraySqlExpr [SqlExpr]
- 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] [(SqlExpr, SqlOrder)] | 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 | |
ArraySqlExpr [SqlExpr] |
Data type for SQL UPDATE statements.