Closed webstradev closed 9 months ago
This adds the Ping only to websockets, no? We have also HTTP transport that needs the support too.
This adds the Ping only to websockets, no? We have also HTTP transport that needs the support too.
Ah at first glance it didn't look like that had a diver but I guess it needs to be added to the hranaV2Conn I'll amend that now
@haaawk Should be ready for re-review
This PR adds a Ping and PingContext method to the Driver which satisfy the sql driver interface.
It uses a simple SELECT 1 to test the connection, which I believe is how most drivers implement a ping.
I have added a test to test the funcitonality and also included an example.
Closes #96