Skip to content

cli: standalone cockroach-sql does not know how to use env vars #82024

@knz

Description

@knz

Describe the problem

cockroach sql supports COCKROACH_DATABASE and other client-side env vars to set connection defaults.

The standalone cockroach-sql shell does not see these env vars and so the env vars cannot be used to override the connection parameters.

Expected behavior

The env vars should be supported for convenience and feature parity with cockroach sql.

Jira issue: CRDB-16172

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cli-clientCLI commands that pertain to using SQL featuresA-cli-flagsPertains to CLI flag handling common to all CLI commandsC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.docs-known-limitation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions