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
If you use the context.Context methods that database/sql provides, you can allow the user to cancel in-flight queries or transactions in your user-interface.
The text was updated successfully, but these errors were encountered:
Yup, aware of what could be done, and yeah it would be a relatively small change. I just haven't had a chance to do the work. The other issue is at the moment I'm not using separate Goroutines. In order to do this, at minimum the query/execution stuff would have to be put into a separate routine, and then something would have to be done to "intercept" the SIG from the OS or the readline package that is being used. Also, note, this would only work when built with Go1.8 (which is perfectly fine requirement -- just pointing it out).
If you use the context.Context methods that database/sql provides, you can allow the user to cancel in-flight queries or transactions in your user-interface.
The text was updated successfully, but these errors were encountered: