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

Setting connections with environment variables #1355

Open
sel-carlitos opened this issue Jul 6, 2024 · 1 comment
Open

Setting connections with environment variables #1355

sel-carlitos opened this issue Jul 6, 2024 · 1 comment

Comments

@sel-carlitos
Copy link

I am trying to get this working:

    "sqltools.connections": [
        {
            "previewLimit": 1000,
            "server": "db",
            "port": 5432,
            "driver": "PostgreSQL",
            "name": "db_container",
            "database": "${env:POSTGRES_DATABASE}",
            "username": "${env:POSTGRES_USER}",
            "password": "${env:POSTGRES_PASSWORD}",
        },
    ],

But I can get it work. Is there a way I can achieve this?

@gjsjohnmurray
Copy link
Collaborator

Not currently. Enhancement request #857 would cover this.

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

2 participants