5

Long story short, I wrote this really nice SQL query a few days ago. Then I closed the DB console tab with that query on it and cannot locate it anywhere.

Has the file been lost, or is it some IntelliJ cached / system folder?

The reason I ask, is because when you open a new DB console, the tab has a different indice on it, which leads me to believe that, there is some persistence of those files somewhere?

enter image description here

Any other way I can recover this query?

Community
  • 1
  • 1
tomaytotomato
  • 3,788
  • 16
  • 64
  • 119

1 Answers1

6

Your old consoles will live underneath the Scratches subdirectory. In your project view, click the button that says "Project".

enter image description here

From that drop-down menu, select "Scratches". You'll see the "Database Consoles" folder there, and that should contain any SQL queries that you haven't actively removed from your DB console.

Makoto
  • 104,088
  • 27
  • 192
  • 230