Open arruw opened 6 years ago
The connection string should look like postgres://user@ip:port?sslmode=disable
.
@jordanlewis thank you.
If anyone is searching for more details, read more here: https://www.cockroachlabs.com/docs/stable/use-the-built-in-sql-client.html
For insecure connections, the URL format is:
postgresql://<user>@<host>:<port>/<database>?sslmode=disable
For secure connections, the URL format is:
postgresql://<user>@<host>:<port>/<database>
with the following parameters in the query string:
sslcert=<path-to-client-crt>
sslkey=<path-to-client-key>
sslmode=verify-full
sslrootcert=<path-to-ca-crt>
I couldn't find example how to set this
<db URL>
. I'm guessing that this should be JDBC connection string? Also how can I specify user and password?I tried like that, but it doesn't work.
Thanks for any info :)