Deprectate bulk-call
This commit is contained in:
@@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Deprecated
|
||||||
|
|
||||||
|
- #1385, Deprecate bulk-calls when including the `Prefer: params=multiple-objects` in the request. A function with a JSON array or object parameter should be used instead for a better performance.
|
||||||
|
|
||||||
## [10.0.0] - 2022-08-18
|
## [10.0.0] - 2022-08-18
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -171,6 +171,7 @@ data PreferParameters
|
|||||||
| MultipleObjects -- ^ Pass an array of json objects as params to a stored procedure.
|
| MultipleObjects -- ^ Pass an array of json objects as params to a stored procedure.
|
||||||
deriving Eq
|
deriving Eq
|
||||||
|
|
||||||
|
-- TODO: Deprecate params=multiple-objects in next major version
|
||||||
instance ToHeaderValue PreferParameters where
|
instance ToHeaderValue PreferParameters where
|
||||||
toHeaderValue SingleObject = "params=single-object"
|
toHeaderValue SingleObject = "params=single-object"
|
||||||
toHeaderValue MultipleObjects = "params=multiple-objects"
|
toHeaderValue MultipleObjects = "params=multiple-objects"
|
||||||
|
|||||||
Reference in New Issue
Block a user