Skip to content

Support Connection.isValid method #156

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
wants to merge 1 commit into from

Conversation

nicktorwald
Copy link

@nicktorwald nicktorwald commented Apr 9, 2019

Add ping request to the DB using SELECT 1 expression. Timeout requires
the implementation of at least Statement.setQueryTimeout and
Statement.cancel (see #155 ).

Closes: #75
Depends on: #155

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 64.317% when pulling e9272e8 on nicktorwald/gh-75-connection-is-valid into 06755d5 on master.

@nicktorwald nicktorwald requested a review from Totktonada April 10, 2019 06:59
Copy link
Member

@Totktonada Totktonada left a comment

Choose a reason for hiding this comment

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

LGTM.

The only comment: I would clarify the commit message a bit:

Use 'SELECT 1' expression as a ping request to an underlying database.

The current implementation lacks of timeout support because it would
require at least Statement.setQueryTimeout() and Statement.cancel().
This will be implemented in the scope of #155.

Closes: #75

The current implementation lacks of timeout support because it would
require at least Statement.setQueryTimeout() and Statement.cancel().
This will be implemented in the scope of #155.

Closes: #75
@nicktorwald nicktorwald force-pushed the nicktorwald/gh-75-connection-is-valid branch from e9272e8 to df814c2 Compare April 17, 2019 20:15
@nicktorwald
Copy link
Author

Pushed in 197d7fa

@nicktorwald nicktorwald deleted the nicktorwald/gh-75-connection-is-valid branch April 17, 2019 20:42
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.

jdbc: Support Connection.isValid()
3 participants