serviette-0.1.0.5: JSON to Sql

Safe HaskellNone
LanguageHaskell2010

Data.ApiDataTypes

Description

This provides types that represent sql query structure

Synopsis

Documentation

data TableName Source #

Type declaration

Represents db table name

Constructors

TableName Text 

data ColumnName Source #

Represents db table column name

Constructors

ColumnName Text 

data Operator Source #

Represents operator (=, >, <, like, not like etc.)

Constructors

Operator Text 

data Action Source #

Represents the main action for the sql query (SELECT,INSERT, UPDATE, DELETE)

Constructors

Action Text 

Instances

Show Action Source # 
Generic Action Source # 

Associated Types

type Rep Action :: * -> * #

Methods

from :: Action -> Rep Action x #

to :: Rep Action x -> Action #

ToJSON Action Source # 
FromJSON Action Source # 
type Rep Action Source # 
type Rep Action = D1 (MetaData "Action" "Data.ApiDataTypes" "serviette-0.1.0.5-RgEQsgkE6J7JBgPYRKZJ" False) (C1 (MetaCons "Action" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

data Format Source #

Represents return format (for now this is only raw sql string)

Constructors

Format 

Fields

Instances

type DateVal = Text Source #

Represents Date field value

data SetField Source #

Represents set fields for the sql insert query

data JoinTable Source #

Represents join table for the sql query

data WhereCondition Source #

Represents main where condition

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 #