Set query console default to "Script", not "Playground"

My usage of DG has me almost always use switch a console to script, is there some way to make this the default? It’s currently pretty annoying having to switch it all the time, I never need the playground functionality.

5 comments
Comment actions Permalink
Hi Christoph,

We use Playground as the default File Resolve mode for console instances, whereas we have Script mode set as default for SQL files. This behavior is by design, and you can't change it in the settings of DataGrip.
0
Comment actions Permalink

So is there any chance of improving the situation by adding it to settings? It made using DG far worse.

0
Comment actions Permalink
Please clarify your current use case of using Console with Script mode. We have SQL file where Script mode is set as default. What is preventing you from using SQL file for running SQL scripts? We'll need more context to address your concern.
0
Comment actions Permalink

The scripts are almost always ad-hoc, not reusable files. They rarely ever get saved. It’s mostly exploration and tuning.

 

Essentially, the old flow was:

Use databasename

go

SELECT * FROM table

Submit.

The Playground mode requires me to submit after USE databasename for no reason at all (in my workflow; I literally never had any use for it).

Another use case is simply opening a table definition, which is fastest by doing what I did above, but instead of submitting I simply Ctrl+Click the table name. This also fails now.

0

Please sign in to leave a comment.