postgrest-0.3.0.1: REST API for any Postgres database

Safe HaskellNone
LanguageHaskell2010

PostgREST.Types

Synopsis

Documentation

newtype UniformObjects Source

An array of JSON objects that has been verified to have the same keys in every object

Constructors

UniformObjects (Vector Object) 

data Payload Source

When Hasql supports the COPY command then we can have a special payload just for CSV, but until then CSV is converted to a JSON array.

type Path = [Text] Source

data ReadQuery Source

Constructors

Select 

Fields

select :: [SelectItem]
 
from :: [Text]
 
flt_ :: [Filter]
 
order :: Maybe [OrderTerm]
 

data MutateQuery Source

Constructors

Insert 

Fields

in_ :: Text
 
qPayload :: Payload
 
Delete 

Fields

in_ :: Text
 
where_ :: [Filter]
 
Update 

Fields

in_ :: Text
 
qPayload :: Payload
 
where_ :: [Filter]
 

data Filter Source

Constructors

Filter