mtxr / vscode-sqltools

Database management for VSCode
https://vscode-sqltools.mteixeira.dev?utm_source=github&utm_medium=homepage-link
MIT License
1.44k stars 291 forks source link

Add a preferences option to set a static/dynamic directory to save the sessions into #1147

Open alfawal opened 1 year ago

alfawal commented 1 year ago

Is your feature request related to a problem? Please describe. If you have an SQL session opened and you press Ctrl + S to save it, it saves it directly into the opened project root.

Describe the solution you'd like Have a settings option where I can set a static directory to save the sessions into e.g. ~/Documents/sql_sessions

Or a dynamic one with dynamic values option e.g. set the settings option to "~/Documents/sql_sessions/$day-$month-$year/$connection_type/$connection_name" where it would be mentioned in the settings and the docs that there are supported dynamics etc.

and I would love to see the same thing implemented for naming the .session.sql files with another settings option!

Describe alternatives you've considered Adding *.session.sql to the project's .gitignore