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

Use sqlite3 API to cancel running queries #166

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

mjpieters
Copy link
Contributor

This fixes #164.

Since the interrupt handler was the only code that referenced
sqlexecute.connection_id, and the connection ids is merely a random
UUID without any meaning, the code generating that UUID can be removed
as well.

@codecov-commenter
Copy link

codecov-commenter commented Oct 3, 2023

Codecov Report

All modified lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@a4aa7cd). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #166   +/-   ##
=======================================
  Coverage        ?   62.09%           
=======================================
  Files           ?       23           
  Lines           ?     2018           
  Branches        ?        0           
=======================================
  Hits            ?     1253           
  Misses          ?      765           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mjpieters mjpieters marked this pull request as ready for review October 3, 2023 14:44
@mjpieters
Copy link
Contributor Author

I've rebased this PR onto my #167 PR; you can review the changes in this PR alone by selecting a single commit on the commits or files changed tabs.

If you choose to merge #167 first, I'll rebase this PR onto master.

Since the interrupt handler was the only code that referenced
`sqlexecute.connection_id`, and the connection ids is merely a random
UUID without any meaning, the code generating that UUID can be removed
as well.
@mjpieters
Copy link
Contributor Author

Rebased now that #167 has been merged.

@amjith
Copy link
Member

amjith commented Oct 3, 2023

Looks good! Thank you!

🍨

@amjith amjith merged commit a9f4b27 into dbcli:main Oct 3, 2023
6 checks passed
@mjpieters mjpieters deleted the keyboard_interrupt branch October 6, 2023 17:49
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.

Cancelling a query leads to an error message, there is no 'KILL' command in sqlite
3 participants