I couldn't find answer to this questions on SO despite long search. For some reason I thought I've seen it before.
Do you guys know in which file IDEA saves content of database console scripts ?
I thought it was in dataSources.ids
but I don't see scripts there, only connection settings.
By default,IntelliJ IDEA stores your projects under ~\DataGripProjects.
To access the Data Sources and Drivers dialog ( Shift+Enter ), perform one of the following actions: In the Database tool window (View | Tool Windows | Database), click the Data Source Properties button. . In the Database tool window (View | Tool Windows | Database), click the Add button.
In the Project tool window (View | Tool Windows | Project), right-click the directory in which you want to create an SQL file and select File. In the New File dialog, specify the filename with the SQL extension.
Click a data source and select File | New | Query Console. Right-click a data source and select New | Query Console. Click a data source, press Alt+Insert , and select Query Console. Click a data source, press Ctrl+Shift+F10 , and select New Query Console.
Try looking into the IntelliJ cache folder.
For me I did not find the database scripts themselves, but found a history of all the sql statements executed here :
`c:\Users\$user\.IntelliJIdea13\system\userHistory\*.xml`
(Am on IntelliJ Idea EAP).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With