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

Support for replica(read/write) #1068

Closed
nilpntr opened this issue Nov 20, 2024 · 1 comment
Closed

Support for replica(read/write) #1068

nilpntr opened this issue Nov 20, 2024 · 1 comment

Comments

@nilpntr
Copy link

nilpntr commented Nov 20, 2024

I'm trying to setup bun to split the read and write queries over 2 url's(1 for read/write and one for read only). The problem is bun.NewDB is expecting an sql.DB struct but maybe it should expect an interface implementing all the sql.DB functionality which makes room for these type of setups. Are you guys planning on having such things in the future?

@vmihailenco
Copy link
Member

Duplicate of #1037

@vmihailenco vmihailenco marked this as a duplicate of #1037 Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants