diff options
Diffstat (limited to 'lib/sqlalchemy/pool/impl.py')
| -rw-r--r-- | lib/sqlalchemy/pool/impl.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/sqlalchemy/pool/impl.py b/lib/sqlalchemy/pool/impl.py index fe87dbb8e..0fe7612b9 100644 --- a/lib/sqlalchemy/pool/impl.py +++ b/lib/sqlalchemy/pool/impl.py @@ -25,10 +25,11 @@ from ..util import threading class QueuePool(Pool): - """A :class:`.Pool` that imposes a limit on the number of open connections. + """A :class:`_pool.Pool` + that imposes a limit on the number of open connections. :class:`.QueuePool` is the default pooling implementation used for - all :class:`.Engine` objects, unless the SQLite dialect is in use. + all :class:`_engine.Engine` objects, unless the SQLite dialect is in use. """ @@ -45,7 +46,7 @@ class QueuePool(Pool): Construct a QueuePool. :param creator: a callable function that returns a DB-API - connection object, same as that of :paramref:`.Pool.creator`. + connection object, same as that of :paramref:`_pool.Pool.creator`. :param pool_size: The size of the pool to be maintained, defaults to 5. This is the largest number of connections that @@ -88,9 +89,9 @@ class QueuePool(Pool): :ref:`pool_disconnects` :param \**kw: Other keyword arguments including - :paramref:`.Pool.recycle`, :paramref:`.Pool.echo`, - :paramref:`.Pool.reset_on_return` and others are passed to the - :class:`.Pool` constructor. + :paramref:`_pool.Pool.recycle`, :paramref:`_pool.Pool.echo`, + :paramref:`_pool.Pool.reset_on_return` and others are passed to the + :class:`_pool.Pool` constructor. """ Pool.__init__(self, creator, **kw) @@ -273,7 +274,7 @@ class SingletonThreadPool(Pool): for production use. - Options are the same as those of :class:`.Pool`, as well as: + Options are the same as those of :class:`_pool.Pool`, as well as: :param pool_size: The number of threads in which to maintain connections at once. Defaults to five. @@ -417,7 +418,7 @@ class StaticPool(Pool): class AssertionPool(Pool): - """A :class:`.Pool` that allows at most one checked out connection at + """A :class:`_pool.Pool` that allows at most one checked out connection at any given time. This will raise an exception if more than one connection is checked out |
