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 over separate connection #1588

Closed
flip111 opened this Issue Mar 6, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@flip111

flip111 commented Mar 6, 2018

Is there any support to separate read and write queries over different connections? This is useful for Sqlite where you can write with one connection but read with multiple using write ahead logging. I think this could also be useful if you have one write-master database server and a couple of read-slave database servers (obviously another platform than sqlite). Is there any method to inspect querybuilder-queries or handwritten queries at compile time to see if they are read or write?

@sgrif

This comment has been minimized.

Member

sgrif commented Mar 6, 2018

Is there any support to separate read and write queries over different connections?

Yes. This would work the same as any other database driver. Create users with read access vs read/write access, and establish the connection using those.

Is there any method to inspect querybuilder-queries or handwritten queries at compile time to see if they are read or write?

No, there is not.

@sgrif sgrif closed this Mar 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment