postgrest-0.4.1.0: REST API for any Postgres database

Safe HaskellNone
LanguageHaskell2010

PostgREST.Types

Synopsis

Documentation

data ContentType Source #

Enumeration of currently supported response content types

data PgArg Source #

Constructors

PgArg 

Fields

Instances

Eq PgArg Source # 

Methods

(==) :: PgArg -> PgArg -> Bool #

(/=) :: PgArg -> PgArg -> Bool #

Show PgArg Source # 

Methods

showsPrec :: Int -> PgArg -> ShowS #

show :: PgArg -> String #

showList :: [PgArg] -> ShowS #

newtype PayloadJSON Source #

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

Constructors

PayloadJSON (Vector Object) 

data Proxy Source #

Constructors

Proxy 

Instances

Eq Proxy Source # 

Methods

(==) :: Proxy -> Proxy -> Bool #

(/=) :: Proxy -> Proxy -> Bool #

Show Proxy Source # 

Methods

showsPrec :: Int -> Proxy -> ShowS #

show :: Proxy -> String #

showList :: [Proxy] -> ShowS #

type Cast = Text Source #

type Path = [Text] Source #

data Filter Source #

Constructors

Filter 

Instances

toHeader :: ContentType -> Header Source #

Convert from ContentType to a full HTTP Header

toMime :: ContentType -> ByteString Source #

Convert from ContentType to a ByteString representing the mime type