You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should provide a method to test connection validity (connection is open and functional) on the Connection level. This is useful to test connection liveness without the need to specify a validation-query that might be vendor-specific SQL. Drivers might have a better option to test connection validity than using pure SQL.
The method would look like:
Publisher<Void> isValid()
We could also include a notion of validation depth (is connected, is the server working) to run validation on two different levels.
This would result in a method signature like:
Publisher<Void> isValid(ValidationDepth) where ValidationDepth is an enum.
The text was updated successfully, but these errors were encountered:
Connection exposes with validate(ValidationDepth) a method for driver-side connection validation. ValidationDepth signals whether it is a local-only validation without incorporating remote communication or whether a full remote validation should be performed.
Drivers typically either check the local connection state or send a database message, query or any other mechanism, to validate the connection.
Resolves#54.
mp911de
changed the title
Proposal: Introduce Connection.isValid() method
Introduce Connection.isValid() method
Sep 26, 2019
We should provide a method to test connection validity (connection is open and functional) on the
Connection
level. This is useful to test connection liveness without the need to specify a validation-query that might be vendor-specific SQL. Drivers might have a better option to test connection validity than using pure SQL.The method would look like:
Publisher<Void> isValid()
We could also include a notion of validation depth (is connected, is the server working) to run validation on two different levels.
This would result in a method signature like:
Publisher<Void> isValid(ValidationDepth)
whereValidationDepth
is an enum.The text was updated successfully, but these errors were encountered: