Skip to content

cockroach-sql: increase compatibility with cockroach-sql#82074

Merged
craig[bot] merged 1 commit intomasterfrom
20220528-certs7
May 31, 2022
Merged

cockroach-sql: increase compatibility with cockroach-sql#82074
craig[bot] merged 1 commit intomasterfrom
20220528-certs7

Conversation

@knz
Copy link
Copy Markdown
Contributor

@knz knz commented May 30, 2022

PR split from #82020 to ease review.

Fixes #81882.
Fixes #82024.

Release note (cli change): The standalone cockroach-sql executable
now has more compatibility with cockroach sql, so it can be used as
a drop-in replacement. For example, it supports running without a URL,
using connection defaults. It also supports overriding --certs-dir
and other client-side options also supported by cockroach sql.

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@knz knz force-pushed the 20220528-certs6 branch from 7d0cdeb to bf31aff Compare May 30, 2022 16:05
@knz knz force-pushed the 20220528-certs7 branch from 239cae3 to 7c015d2 Compare May 30, 2022 16:05
@knz knz force-pushed the 20220528-certs6 branch from bf31aff to f9241eb Compare May 30, 2022 18:02
@knz knz force-pushed the 20220528-certs7 branch from 7c015d2 to 954c1f1 Compare May 30, 2022 18:02
@knz knz requested review from otan and rafiss May 30, 2022 18:08
@knz knz marked this pull request as ready for review May 30, 2022 18:08
@knz knz requested a review from a team as a May 30, 2022 18:08
@knz knz force-pushed the 20220528-certs6 branch from f9241eb to 810c1a5 Compare May 30, 2022 18:42
@knz knz force-pushed the 20220528-certs7 branch from 954c1f1 to 1ba229e Compare May 30, 2022 18:42
}

// How we're going to authenticate.
usePw, _, _ := connURL.GetAuthnPassword()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: pw as acronym, so use usePW

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@knz knz force-pushed the 20220528-certs7 branch from 1ba229e to f61e1ee Compare May 31, 2022 08:43
@knz knz force-pushed the 20220528-certs6 branch from b360bf4 to ff4347a Compare May 31, 2022 11:49
@knz knz force-pushed the 20220528-certs7 branch from f61e1ee to d47a66f Compare May 31, 2022 11:49
@knz knz force-pushed the 20220528-certs6 branch from ff4347a to 178ed5c Compare May 31, 2022 11:52
@knz knz force-pushed the 20220528-certs7 branch 2 times, most recently from 00eaddb to cc7bcff Compare May 31, 2022 11:54
@knz knz force-pushed the 20220528-certs6 branch from 178ed5c to df0e29f Compare May 31, 2022 14:41
@knz knz requested a review from a team May 31, 2022 14:41
@knz knz requested a review from a team as a code owner May 31, 2022 14:41
Release note (cli change): The standalone `cockroach-sql` executable
now has more compatibility with `cockroach sql`, so it can be used as
a drop-in replacement. For example, it supports running without a URL,
using connection defaults. It also supports overriding `--certs-dir`
and other client-side options also supported by `cockroach sql`.
@knz knz force-pushed the 20220528-certs7 branch from cc7bcff to 7f67f7c Compare May 31, 2022 15:30
@knz
Copy link
Copy Markdown
Contributor Author

knz commented May 31, 2022

(NB: Holding off on merging this despite the review approval, since we can't merge intermediate PRs in a sequence without dropping the entire sequence off github.)

Base automatically changed from 20220528-certs6 to master May 31, 2022 18:49
@craig craig bot merged commit 7f67f7c into master May 31, 2022
@craig craig bot deleted the 20220528-certs7 branch May 31, 2022 18:49
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

Successfully merging this pull request may close these issues.

cli: standalone cockroach-sql does not know how to use env vars Allow standalone SQL client binary to support --certs-dir

3 participants