Is it possible to run and execute a query when the cursor is at the end of a SQL file? Follow
Answered
When my cursor is at the end of a SQL file and I run the keyboard command to Execute (cmd + enter), DataGrip doesn't seem to recognize anything. Even if I don't have any semicolons at the end, I can't get DG to recognize any SQL statement.
Is there a setting I can change to allow this? Or would this have to be a feature requested?
Please sign in to leave a comment.
Play around with available options (Settings -> Database -> General -> Execute in Console section) to get desired execution behaviour:

Awesome thanks.
You want "otherwise execute" to be "whole script"