Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to override database adapter options in params.adapter #2103

Closed
daffl opened this issue May 7, 2020 · 0 comments · Fixed by #2367
Closed

Allow to override database adapter options in params.adapter #2103

daffl opened this issue May 7, 2020 · 0 comments · Fixed by #2367

Comments

@daffl
Copy link
Member

daffl commented May 7, 2020

Similar to how the database adapters already allow paginate: false the adapters should allow the possibility to pass additional adapter options as params.adapter.

Specifically:

  • params.adapter.paginate - Same as params.paginate but recommended to use from now on
  • params.adapter.multi - To override the multi option e.g. for internal calls. This is especially useful for tests and seed files.
  • params.adapter.allow - To temporarily allow additional query $ operators
  • params.adapter.Model - To use a different model for a request if the adapter supports a model
@daffl daffl transferred this issue from another repository Oct 22, 2020
@daffl daffl added this to the v5 (Dove) milestone Mar 29, 2021
@daffl daffl changed the title Allow to override multi in params Allow to override database adapter options in params Mar 29, 2021
@daffl daffl changed the title Allow to override database adapter options in params Allow to override database adapter options in params.adapter Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant