Execute the current query
See original GitHub issueIs it possible to execute the current query (i.e. the one where the cursor is)?
I have a .sql
file with several queries, as part of the research phase, and I want to execute only one of them. Currently, F5
would execute all queries in the file unless I select one of them. It will be amazing if I could easily execute the query at the position of the cursor.
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (10 by maintainers)
Top Results From Across the Web
How can I run just the statement my cursor is on in SQL Server ...
Shift-F5 will select the current statement (which allows you to review what you are currently going to execute). Then you press F5 and...
Read more >Select Current Statement / Run current statement - SSMSBoost
We have implemented "Select Current Statement" (SHIFT+F5) feature which, followed by "Execute (F5)", gives you the desired "Run current statement" functionality ...
Read more >See what queries are currently running - SQLMatters
Sometimes it is useful to see what is currently running on a SQL server. On SQL Server 2005 and later this is fairly...
Read more >sql server - Execute new query when current query finalises
So I would just wait until the current query is finished, and then you can highlight the rest of the script and run...
Read more >SQL Prompt Tips #5 - Current Statement Execution
By pressing Shift+F5, I'll execute the current statement only. That's the one that has my cursor in it. In any line, any part...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the hint! It was worthy! In
init.coffee
I added:and in
keymap.cson
:Now, when the cursor is in a query (or at least as far Atom.io paragraphs and SQL queries are the same) I can hit
F6
and execute it.I would like to figure out how to bind
F6
to this function only when the language is SQL. Do you know?Sure was