serviette-0.1.0.6: JSON to Sql

Safe HaskellNone
LanguageHaskell2010

Data.Serviette

Description

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.

Synopsis

Documentation

rawSqlStr :: SqlQuery -> ByteString Source #

Returns json with sql query and errors and warnings if any

data SqlQuery Source #

Represents intermediate type for receiving json

data SqlResultQuery Source #

Represents type that is the result of the json "computation"

Instances

Show SqlResultQuery Source # 
Generic SqlResultQuery Source # 

Associated Types

type Rep SqlResultQuery :: * -> * #

ToJSON SqlResultQuery Source # 
FromJSON SqlResultQuery Source # 
type Rep SqlResultQuery Source #