Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choose a connection in an SQL file (configuration by comment) #243

Open
Eccenux opened this issue Nov 29, 2023 · 0 comments
Open

Choose a connection in an SQL file (configuration by comment) #243

Eccenux opened this issue Nov 29, 2023 · 0 comments

Comments

@Eccenux
Copy link

Eccenux commented Nov 29, 2023

Would be very useful to have an ability to define what is the default connection / database for a given file.

I have a lot of SQL files some of which work on a specific database. Utility scripts for testing and debugging.

So maybe the extension could read some comment like this:

/*
{
"vscode-postgres.defaultConnection": "dev",
"vscode-postgres.defaultDatabase": "bus_library",
}
*/

Connection might be optional (defaults to workspace default):

/*
{
"vscode-postgres.defaultDatabase": "test_claims",
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant