mtxr / vscode-sqltools

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

Setting connections with environment variables #1355

Open sel-carlitos opened 3 weeks ago

sel-carlitos commented 3 weeks ago

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 commented 3 weeks ago

Not currently. Enhancement request #857 would cover this.