postgrest-8.0.0: REST API for any Postgres database
Safe HaskellSafe-Inferred
LanguageHaskell2010

PostgREST.Request.Preferences

Synopsis

Documentation

data PreferRepresentation Source #

How to return the mutated data. From https://tools.ietf.org/html/rfc7240#section-4.2

Constructors

Full

Return the body plus the Location header(in case of POST).

HeadersOnly

Return the Location header(in case of POST). This needs a SELECT privilege on the pk.

None

Return nothing from the mutated data.

data PreferParameters Source #

Constructors

SingleObject

Pass all parameters as a single json object to a stored procedure

MultipleObjects

Pass an array of json objects as params to a stored procedure

data PreferCount Source #

Constructors

ExactCount

exact count(slower)

PlannedCount

PostgreSQL query planner rows count guess. Done by using EXPLAIN {query}.

EstimatedCount

use the query planner rows if the count is superior to max-rows, otherwise get the exact count.

Instances

Instances details
Eq PreferCount Source # 
Instance details

Defined in PostgREST.Request.Preferences

Show PreferCount Source # 
Instance details

Defined in PostgREST.Request.Preferences