Skip to content

Add details on connecting to a virtual cluster using native cockroach sql options #22998

Description

@smcvey

Regarding this page: https://www.cockroachlabs.com/docs/stable/work-with-virtual-clusters

It describes how to connect to a virtual cluster by using a long-winded postgresql URL (postgresql://..... While this is fine, there's also the option to use the cockroach sql client like this:

cockroach sql --database cluster:<cluster name>/<database>

Sometimes, passing the cluster name in like this is easier than construction a long postgresql URL.

Could we add the use of cockroach sql --database to this page?

Jira issue: DOC-16297

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions