Is there a way to save the whole content of the Data Source Console as *.sql file?

Answered

Hello Idea community

I have authored a couple of sql statements in the data source console (mysql) and I want to save the whole content of the console in an sql file.
The only way I figured out how to achieve this was through  File>Save As menu item, but unfortunatelly the saved file contains nothing.

So, is there a way to do that?

Thank you in advance.

5 comments
Comment actions Permalink

Currently you can use "Select All" -> "Copy to Clipboard" -> Create new file -> "Paste from Cliboard" sequence to achieve this.
The observed "Save As" behavior is a bug so feel free to create a ticket at http://youtrack.jetbrains.com/ .

BTW Console contents is saved and restored on reopen.

0
Comment actions Permalink

Thank you Gregory Shrago

I filed one issue and one feture request in youtrack.

http://youtrack.jetbrains.com/issue/IDEA-86457 [issue]
http://youtrack.jetbrains.com/issue/IDEA-86458 [feature request]

0
Comment actions Permalink
http://youtrack.jetbrains.com/issue/IDEA-86457 [issue]

Wow, you already fixed it. Thank you very much.

Best regards

0
Comment actions Permalink

Please advise if this issue has been solved yet. Even in the latest version of Data Grip, I am not able to perform Save As for SQL file. 

0
Comment actions Permalink

>I am not able to perform Save As for SQL file. 

@Mister Incognito use Refactor | Copy action (F5 default shortcut).

0

Please sign in to leave a comment.