Skip to content

easier handle database retry #930

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

Closed
kevinburke1 opened this issue Mar 7, 2021 · 1 comment
Closed

easier handle database retry #930

kevinburke1 opened this issue Mar 7, 2021 · 1 comment

Comments

@kevinburke1
Copy link
Contributor

It would be nice in the event of database instability - for example, if the database restarts and is returning connection refused - for the queries issued by sqlc to automatically retry up until a specified number of times or until the context runs out.

Bonus points if you can also retry errors on idempotent queries that fail after the query has been sent to the database.

@kyleconroy
Copy link
Collaborator

While this would be nice to have, it's low priority. Maybe we figure out a generic middleware stack so that retry logic can be implemented outside of sqlc.

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