Cockroach: cli: support for \connect to a different DB

Created on 15 Oct 2020  路  4Comments  路  Source: cockroachdb/cockroach

Requesting to add support for \connect database similar to psql format, to be used in addition to how USE database is currently used in CRDB.

A-cli A-sql-pgcompat O-community X-blathers-oncall good first issue hacktoberfest

Most helpful comment

@mneverov, we can start just with an alias for USE. Changing the connection to a different host and port could be interesting, but I think it's used far less frequently than the simple alias.

All 4 comments

Hello, I am Blathers. I am here to help you get the issue triaged.

It looks like you have not filled out the issue in the format of any of our templates. To best assist you, we advise you to use one of these templates.

I have CC'd a few people who may be able to assist you:

  • @tim-o (member of the technical support engineering team)

If we have not gotten back to your issue within a few business days, you can try the following:

  • Join our community slack channel and ask on #cockroachdb.
  • Try find someone from here if you know they worked closely on the area and CC them.

:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

is this ticket about introducing an alias for SET (like USE) or should the full support of the \connect command be implemented?

\c or \connect [ -reuse-previous=on|off ] [ dbname [ username ] [ host ] [ port ] | conninfo ]

Hi, I'll to work on this,

@mneverov, we can start just with an alias for USE. Changing the connection to a different host and port could be interesting, but I think it's used far less frequently than the simple alias.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tim-o picture tim-o  路  3Comments

awoods187 picture awoods187  路  3Comments

danhhz picture danhhz  路  3Comments

petermattis picture petermattis  路  4Comments

richardanaya picture richardanaya  路  3Comments