Safe Haskell | None |
---|---|
Language | Haskell2010 |
Generate sql queries from JSON. You could use this to query database directly from frontend. Basic sql queries are supported and the resulting sql query is returned in json format.
- rawSqlStr :: SqlQuery -> ByteString
- data SqlQuery = SqlQuery {
- format :: Int
- action :: Action
- selectName :: TableName
- set :: Maybe [SetField]
- joinTables :: Maybe [JoinTable]
- whereCondition :: Maybe [WhereCondition]
- data SqlResponse = SqlResponse {}
- data SqlResultQuery = SqlResultQuery {}
Documentation
rawSqlStr :: SqlQuery -> ByteString Source #
Returns json with sql query and errors and warnings if any
Represents intermediate type for receiving json
SqlQuery | |
|
data SqlResponse Source #
data SqlResultQuery Source #
Represents type that is the result of the json "computation"
SqlResultQuery | |
|