Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.ApiDataTypes
Description
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
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)
Represents set fields for the sql insert query
Constructors
SetField | |
Fields |
Represents join table for the sql query
data WhereCondition Source #
Represents main where condition
Constructors
WhereCondition | |
Fields |
Instances
Represents intermediate type for receiving json
Constructors
SqlQuery | |
Fields
|
data SqlResultQuery Source #
Represents type that is the result of the json "computation"
Constructors
SqlResultQuery | |
Fields
|
Instances
data SqlResponse Source #
Instances