mirror of https://github.com/dbcli/pgcli
Encourage users to use SSL
This commit is contained in:
parent
2f344ca6d2
commit
b2a3a4b63b
|
@ -48,7 +48,7 @@ Usage
|
|||
|
||||
or
|
||||
|
||||
$ pgcli postgresql://[user[:password]@][netloc][:port][/dbname]
|
||||
$ pgcli postgresql://[user[:password]@][netloc][:port][/dbname][?extra=value[&other=other-value]]
|
||||
|
||||
Examples:
|
||||
|
||||
|
@ -56,7 +56,7 @@ Examples:
|
|||
|
||||
$ pgcli local_database
|
||||
|
||||
$ pgcli postgres://amjith:pa$$w0rd@example.com:5432/app_db
|
||||
$ pgcli postgres://amjith:pa$$w0rd@example.com:5432/app_db?sslmode=verify-ca&sslrootcert=/myrootcert
|
||||
|
||||
Features
|
||||
--------
|
||||
|
|
|
@ -359,7 +359,7 @@ class PGCli(object):
|
|||
user=fixup_possible_percent_encoding(uri.username),
|
||||
port=fixup_possible_percent_encoding(uri.port),
|
||||
passwd=fixup_possible_percent_encoding(uri.password))
|
||||
# Deal with extra params e.g. ?sslmode=verify-ca&ssl-cert=/mycert
|
||||
# Deal with extra params e.g. ?sslmode=verify-ca&sslrootcert=/myrootcert
|
||||
if uri.query:
|
||||
arguments = dict(
|
||||
{k: v for k, (v,) in parse_qs(uri.query).items()},
|
||||
|
|
Loading…
Reference in New Issue