postgrest-9.0.0: REST API for any Postgres database
Safe HaskellNone
LanguageHaskell2010

PostgREST.Config

Description

 
Synopsis

Documentation

type JSPath = [JSPathExp] Source #

full jspath, e.g. .property[0].attr.detail

data JSPathExp Source #

jspath expression, e.g. .property, .property[0] or ."property-dash"

Constructors

JSPKey Text 
JSPIdx Int 

data OpenAPIMode Source #

Instances

Instances details
Eq OpenAPIMode Source # 
Instance details

Defined in PostgREST.Config

data Proxy Source #

Constructors

Proxy 

toText :: AppConfig -> Text Source #

Dump the config

isMalformedProxyUri :: Text -> Bool Source #

Test whether a proxy uri is malformed or not. A valid proxy uri should be an absolute uri without query and user info, only http(s) schemes are valid, port number range is 1-65535.

For example http://postgrest.com/openapi.json https://postgrest.com:8080/openapi.json

readAppConfig :: [(Text, Text)] -> Maybe FilePath -> Maybe Text -> IO (Either Text AppConfig) Source #

Reads and parses the config and overrides its parameters from env vars, files or db settings.

readPGRSTEnvironment :: IO Environment Source #

Read environment variables that start with PGRST_