Optional properties like defaultToNull for inserting or head for selecting are a function parameter. In increasing numbers, these function parameters get too clunky and as there are already some parameters in the DSL builder (PostgrestRequestBuilder), moving these properties would fit more.
What is the new behavior?
The Select, Insert and Upsert methods now have their own DSL inheriting from the base builder and adding these "old" function parameters. The syntax now looks like this:
What kind of change does this PR introduce?
Feature (closes #713)
What is the current behavior?
Optional properties like
defaultToNull
for inserting orhead
for selecting are a function parameter. In increasing numbers, these function parameters get too clunky and as there are already some parameters in the DSL builder (PostgrestRequestBuilder
), moving these properties would fit more.What is the new behavior?
The Select, Insert and Upsert methods now have their own DSL inheriting from the base builder and adding these "old" function parameters. The syntax now looks like this:
Additional context
Add any other context or screenshots.