-
Notifications
You must be signed in to change notification settings - Fork 4.1k
cli: standalone cockroach-sql does not know how to use env vars #82024
Copy link
Copy link
Labels
A-cli-clientCLI commands that pertain to using SQL featuresCLI commands that pertain to using SQL featuresA-cli-flagsPertains to CLI flag handling common to all CLI commandsPertains 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.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.docs-known-limitation
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-cli-clientCLI commands that pertain to using SQL featuresCLI commands that pertain to using SQL featuresA-cli-flagsPertains to CLI flag handling common to all CLI commandsPertains 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.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.docs-known-limitation