Closed usommerl closed 2 years ago
Try cockroachdb
. If that doesn't work, just use the postgres
name, as cockroach
is just an alias for the postgres
driver.
@kenshaw It works when I use cockroachdb
. Thanks a lot!
I assumed I could use any scheme alias in the .usqlpass
file, but that is not the case. Is there a general rule on which identifier can be used in this file? Maybe the documentation could be improved in this regard?
It needs to be the primary name. I chose to do it that way for a number of reasons. The rule is that it can't be an alias on the dburl
documentation.
First of all thanks for this handy tool! I'm just playing around with it for an hour so maybe I'm just too dumb to use it and this isn't really a software problem. Here is my issue:
I'm using
usql
to connect to a CockroachDB Serverless instance and this is working fine when I provide the full connection string which includes the credentials:What I really would like to do is to move the credentials in the
~/.usqlpass
file like so:However, the client does not seem to pick up this information when I try to connect:
Am I doing something wrong or is this a bug? Can I somehow check whether the
~/.usqlpass
file is read at all?