Safe Haskell | None |
---|---|
Language | Haskell2010 |
This provides types that represent sql query structure
- data TableName = TableName Text
- data ColumnName = ColumnName Text
- data Operator = Operator Text
- data Action = Action Text
- data Format = Format {}
- type DateVal = Text
- data FieldValue
- data SetField = SetField {}
- data JoinTable = JoinTable {}
- data WhereCondition = WhereCondition {}
- data SqlQuery = SqlQuery {
- format :: Int
- action :: Action
- selectName :: TableName
- set :: Maybe [SetField]
- joinTables :: Maybe [JoinTable]
- whereCondition :: Maybe [WhereCondition]
- data SqlResultQuery = SqlResultQuery {}
- data SqlResponse = SqlResponse {}
Documentation
Type declaration
Represents db table name
data ColumnName Source #
Represents db table column name
Represents operator (=, >, <, like, not like etc.)
Represents the main action for the sql query (SELECT,INSERT, UPDATE, DELETE)
Represents return format (for now this is only raw sql string)
data FieldValue Source #
Represents field value which can be integer, text or date
Represents set fields for the sql insert query
Represents join table for the sql query
Represents intermediate type for receiving json
SqlQuery | |
|
data SqlResultQuery Source #
Represents type that is the result of the json "computation"
SqlResultQuery | |
|
data SqlResponse Source #