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

Run selection #155

Closed
ded0rggit opened this issue Jul 30, 2023 · 3 comments · Fixed by #165
Closed

Run selection #155

ded0rggit opened this issue Jul 30, 2023 · 3 comments · Fixed by #165
Labels
enhancement New feature or request

Comments

@ded0rggit
Copy link

Harlequin with latest duckdb on fedora 38.
Is it possible to run a selection from an sql scirpt file rather than the whole file?
Apologies if I am missing somehting very obvious.

@tconbeer tconbeer added the enhancement New feature or request label Jul 30, 2023
@tconbeer
Copy link
Owner

Here's how I'd like to do this:

when the selection changes, have duckdb parse the selection (see #131 ). If it's a valid query, change the "Run Query" button to say "Run Selection" and on click or ctrl+enter, run the selection instead. Shouldn't be hard to manage the state with a few reactive vars.

@tconbeer tconbeer mentioned this issue Jul 31, 2023
3 tasks
@tconbeer
Copy link
Owner

#34 is kind of related -- with that we'd only execute the query at the cursor, and not execute other queries (separated by semicolons) in the editor.

tconbeer added a commit that referenced this issue Aug 3, 2023
* feat: validate and run selection

* fix: reduce max results to 10k

* feat: run selection and run only current query
@tconbeer
Copy link
Owner

tconbeer commented Aug 3, 2023

This has been released in v0.0.23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants