pgweb icon indicating copy to clipboard operation
pgweb copied to clipboard

Autoselect query block for execution

Open beeing opened this issue 5 years ago • 2 comments

Hi, thanks for creating such helpful tool.

One of the features I'd like to see is the ability to auto select query block to execute.

Example:

SELECT something FROM table
LEFT JOIN table2 ON ....

UPDATE table SET xx=1 WHERE id=1

Noticed above we have 2 queries but there's a few empty lines in between.

When the cursor is on SELECT and press Cmd+Enter, it should run the SELECT query only, not all the queries.

This will improve our productivity.

Thanks in advance.

beeing avatar Aug 26 '20 02:08 beeing

Hey, thanks for the feedback! I also found myself wanting something like this so there's a big chance a feature like it is going to make it into the next release.

sosedoff avatar Aug 26 '20 04:08 sosedoff

Should be available in the PR linked above.

sosedoff avatar Jan 09 '22 05:01 sosedoff

This was implemented in 0.11.11 https://github.com/sosedoff/pgweb/blob/master/CHANGELOG.md#01111---2022-03-29

sosedoff avatar Nov 14 '22 22:11 sosedoff