PgManager: update comments.
authorRadek Brich <radek.brich@devl.cz>
Wed, 26 Sep 2012 16:20:26 +0200
changeset 42 9e3775460792
parent 41 6aad5e35efe8
child 43 a921669e913a
PgManager: update comments.
pgtoolkit/pgmanager.py
--- a/pgtoolkit/pgmanager.py	Fri Aug 17 11:14:31 2012 +0200
+++ b/pgtoolkit/pgmanager.py	Wed Sep 26 16:20:26 2012 +0200
@@ -97,7 +97,7 @@
     def __init__(self, name, dsn, isolation_level=None, keep_alive=True,
                  init_statement=None, pool_size=1):
         self.name = name  # connection name is logged with SQL queries
-        self.dsn = dsn
+        self.dsn = dsn  # dsn or string with connection parameters
         self.isolation_level = isolation_level
         self.keep_alive = keep_alive
         self.init_statement = init_statement
@@ -230,9 +230,9 @@
                      None - disable pool, always return same connection
         isolation_level -- "autocommit", "read_committed", "serializable" or None for driver default
         keep_alive -- set socket to keepalive mode
-        dsn -- string with connection parameters (dsn means Data Source Name)
+        dsn -- connection string (parameters or data source name)
         
-        Alternative for dsn is keyword args (same names as in dsn).
+        Other keyword args are used as connection parameters.
         
         '''
         if name in self.conn_known: