Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module is in charge of building an intermediate representation(ReadRequest, MutateRequest) between the HTTP request and the final resulting SQL query.
A query tree is built in case of resource embedding. By inferring the relationship between tables, join conditions are added for every embedded resource.
Documentation
readRequest :: Schema -> TableName -> Maybe Integer -> [Relation] -> ApiRequest -> Either Response ReadRequest Source #
mutateRequest :: Schema -> TableName -> ApiRequest -> Set FieldName -> [FieldName] -> ReadRequest -> Either Response MutateRequest Source #