cockroachdb / cockroachdb/docs

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

Open
#22,998 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
212
Forks
476
Avg merge
40m
Merged PRs (30d)
3

Description

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:/
```

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.