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

feat: add DBReplica and use it in ReadWriteConnResolver #1121

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

vmihailenco
Copy link
Member

Using the interface allows to override the Ping method on *sql.DB to implement custom health check logic, e.g. you can execute a query to check replication lag etc.

@j2gg0s j2gg0s merged commit 2dc8553 into master Feb 11, 2025
4 checks passed
@j2gg0s j2gg0s deleted the feat/db-replica branch February 11, 2025 02:49
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

Successfully merging this pull request may close these issues.

2 participants