| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
PostgREST.Request.Preferences
Synopsis
Documentation
data PreferResolution Source #
Constructors
| MergeDuplicates | |
| IgnoreDuplicates |
Instances
| Show PreferResolution Source # | |
Defined in PostgREST.Request.Preferences Methods showsPrec :: Int -> PreferResolution -> ShowS # show :: PreferResolution -> String # showList :: [PreferResolution] -> ShowS # | |
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. |
Instances
| Eq PreferRepresentation Source # | |
Defined in PostgREST.Request.Preferences Methods (==) :: PreferRepresentation -> PreferRepresentation -> Bool # (/=) :: PreferRepresentation -> PreferRepresentation -> Bool # | |
| Show PreferRepresentation Source # | |
Defined in PostgREST.Request.Preferences Methods showsPrec :: Int -> PreferRepresentation -> ShowS # show :: PreferRepresentation -> String # showList :: [PreferRepresentation] -> ShowS # | |
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 |
Instances
| Eq PreferParameters Source # | |
Defined in PostgREST.Request.Preferences Methods (==) :: PreferParameters -> PreferParameters -> Bool # (/=) :: PreferParameters -> PreferParameters -> Bool # | |
| Show PreferParameters Source # | |
Defined in PostgREST.Request.Preferences Methods showsPrec :: Int -> PreferParameters -> ShowS # show :: PreferParameters -> String # showList :: [PreferParameters] -> ShowS # | |
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
| Eq PreferCount Source # | |
Defined in PostgREST.Request.Preferences | |
| Show PreferCount Source # | |
Defined in PostgREST.Request.Preferences Methods showsPrec :: Int -> PreferCount -> ShowS # show :: PreferCount -> String # showList :: [PreferCount] -> ShowS # | |
data PreferTransaction Source #
Instances
| Eq PreferTransaction Source # | |
Defined in PostgREST.Request.Preferences Methods (==) :: PreferTransaction -> PreferTransaction -> Bool # (/=) :: PreferTransaction -> PreferTransaction -> Bool # | |
| Show PreferTransaction Source # | |
Defined in PostgREST.Request.Preferences Methods showsPrec :: Int -> PreferTransaction -> ShowS # show :: PreferTransaction -> String # showList :: [PreferTransaction] -> ShowS # | |