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

Read/Write database selection #1393

Open
devon2018 opened this issue Aug 22, 2024 · 0 comments
Open

Read/Write database selection #1393

devon2018 opened this issue Aug 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@devon2018
Copy link

Is your feature request related to a problem? Please describe.
I need to implement read and write replicas of my database in my app, I know I can pass the db to the model query directly using use_db.

Describe the solution you'd like
It would be great if when creating my OrmarConfig I could define a read only database that will get used for all read operations and the default database will be used for write, what would be even better.

Describe alternatives you've considered
using the use_db function but seems a bit messy, this is a config that a lot of other frameworks provide so would be good to consider for a future release.

Additional context
Not that I can think of.

@devon2018 devon2018 added the enhancement New feature or request label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant