File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -91,17 +91,13 @@ def url_to_dsn(url):
9191class Postgres (object ):
9292 """Interact with a `PostgreSQL <http://www.postgresql.org/>`_ datastore.
9393
94- This is the main object that :py:mod:`postgres` provides, and you should
95- have one instance per process. Here are the arguments:
96-
97- - ``url`` - A ``postgres://`` URL or a `PostgreSQL connection string
98- <http://www.postgresql.org/docs/current/static/libpq-connect.html>`_
99-
100- - ``minconn`` - The minimum size of the connection pool
94+ :param unicode url: A ``postgres://`` URL or a `PostgreSQL connection string <http://www.postgresql.org/docs/current/static/libpq-connect.html>`_
95+ :param int minconn: The minimum size of the connection pool
96+ :param int maxconn: The minimum size of the connection pool
10197
102- - ``maxconn`` - The maximum size of the connection pool
103-
104- When instantiated, this object creates a `thread-safe connection pool
98+ This is the main object that :py:mod:`postgres` provides, and you should
99+ have one instance per process. When instantiated, this object creates a
100+ `thread-safe connection pool
105101 <http://initd.org/psycopg/docs/pool.html#psycopg2.pool.ThreadedConnectionPool>`_,
106102 which opens ``minconn`` connections immediately and up to ``maxconn``
107103 according to demand.
You can’t perform that action at this time.
0 commit comments