Golang Database Resolver and Wrapper for any multiple database connections topology, e.g. master-slave replication database, cross-region application, and for s
Golang Database Resolver and Wrapper for any multiple database connections topology, e.g. master-slave replication database, cross-region application, and for s
Golang Database Resolver and Wrapper for any multiple database connections topology, eg. master-slave replication database, cross-region application.
This DBResolver library will split your connections to correct defined DBs. Eg, all read query will routed to ReadOnly replica db, and all write operation(Insert, Update, Delete) will routed to Primary/Master DB.
Read More
| Items | Link |
|---|---|
| Blogpost | blog post |
| Excalidraw | diagram |
| GoSG Meetup Demo | repository |
| GoSG Presentation | deck |
| post |
Click to Expand
Click to Expand
Click to Expand
You can file an Issue. See documentation in Go.Dev
go get -u github.com/bxcodec/dbresolver/v2Click to Expand
…ExecExecContextBegin (transaction will use primary)BeginTx"RETURNING" clauseQueryQueryContextQueryRowQueryRowContextQueryQueryContextQueryRowQueryRowContextTo contrib to this project, you can open a PR or an issue.
No open issues yet, or sync has not completed.