summaryrefslogtreecommitdiff
path: root/lib/__init__.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2016-03-03 16:08:09 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2016-03-03 17:09:15 +0000
commit6893295a8794f332cb9c2a667001ba7dcefb880b (patch)
tree8cc92cafb70e4b5d03edcd344371a1ea124a1fbe /lib/__init__.py
parent52087a79d99009e41129601639e022d100d6491b (diff)
downloadpsycopg2-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__.py4
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)