diff options
author | Chris Fournier <chris.fournier@shopify.com> | 2018-05-14 09:56:05 -0400 |
---|---|---|
committer | Chris Fournier <chris.fournier@shopify.com> | 2018-05-14 09:57:24 -0400 |
commit | b2a3a4b63bb09faff8b86a4f6289ecd7e183e334 (patch) | |
tree | 63e2450184a394404eace92667e58dbec5f5f848 | |
parent | 2f344ca6d27312bc47c2caff35a273590fb7b2ac (diff) |
Encourage users to use SSL
-rw-r--r-- | README.rst | 4 | ||||
-rw-r--r-- | pgcli/main.py | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -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 -------- diff --git a/pgcli/main.py b/pgcli/main.py index cfc3f2d7..815e8f2d 100644 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -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()}, |