diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2016-03-03 16:08:09 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2016-03-03 17:09:15 +0000 |
commit | 6893295a8794f332cb9c2a667001ba7dcefb880b (patch) | |
tree | 8cc92cafb70e4b5d03edcd344371a1ea124a1fbe /lib/__init__.py | |
parent | 52087a79d99009e41129601639e022d100d6491b (diff) | |
download | psycopg2-6893295a8794f332cb9c2a667001ba7dcefb880b.tar.gz |
Added docs about make_dsn
connect() docs updated to document the arguments merging.
Diffstat (limited to 'lib/__init__.py')
-rw-r--r-- | lib/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/__init__.py b/lib/__init__.py index 4a28819..698f50d 100644 --- a/lib/__init__.py +++ b/lib/__init__.py @@ -86,7 +86,7 @@ def connect(dsn=None, connection_factory=None, cursor_factory=None, """ Create a new database connection. - The connection parameters can be specified either as a string: + The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") @@ -94,7 +94,7 @@ def connect(dsn=None, connection_factory=None, cursor_factory=None, conn = psycopg2.connect(database="test", user="postgres", password="secret") - The basic connection parameters are: + Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) |