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

sql: Add optional verification ping on database client initialisation #71

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

gregfurman
Copy link
Collaborator

@gregfurman gregfurman commented Jul 12, 2024

Summary

Changes

  • Extended sqlOpenWithReworks to include a shouldPing boolean which will run a db.PingContext if true.
  • Small refactor of sqlOpenWithReworks, placing the rework functionality into a seperate reworkDSN function.
  • Added new flag init_verify_conn to the SQL component's config and included this in the connSettings struct.
  • Updated docs.

@gregfurman gregfurman self-assigned this Jul 12, 2024
Copy link
Collaborator

@jem-davies jem-davies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - just a small couple of comments.

@gregfurman gregfurman merged commit 16ec8d7 into warpstreamlabs:main Jul 17, 2024
3 checks passed
@gregfurman gregfurman deleted the 70-sql-connection-check branch July 17, 2024 10:42
@gregfurman gregfurman mentioned this pull request Aug 3, 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

Successfully merging this pull request may close these issues.

2 participants