summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.rst4
-rw-r--r--pgcli/main.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/README.rst b/README.rst
index bf5cbd64..58569fcf 100644
--- a/README.rst
+++ b/README.rst
@@ -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()},