diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-12-07 20:13:26 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-12-07 20:13:26 +0000 |
| commit | 9bab01d37baba445ba7ebd1c7c2df3d2d5661794 (patch) | |
| tree | 2dcb83f4a6602f0404d636154f3e7276882e711a /lib/sqlalchemy/pool.py | |
| parent | 0dbbd6fe669afed79be8f639455e324ab9b817ca (diff) | |
| download | sqlalchemy-9bab01d37baba445ba7ebd1c7c2df3d2d5661794.tar.gz | |
- convert __init__ and :members: to be compatible with autoclass_content='both'
Diffstat (limited to 'lib/sqlalchemy/pool.py')
| -rw-r--r-- | lib/sqlalchemy/pool.py | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/lib/sqlalchemy/pool.py b/lib/sqlalchemy/pool.py index cd5ef800b..4bb19d6ee 100644 --- a/lib/sqlalchemy/pool.py +++ b/lib/sqlalchemy/pool.py @@ -60,7 +60,8 @@ class Pool(object): def __init__(self, creator, recycle=-1, echo=None, use_threadlocal=False, reset_on_return=True, listeners=None): - """Construct a Pool. + """ + Construct a Pool. :param creator: a callable function that returns a DB-API connection object. The function will be called with @@ -455,10 +456,11 @@ class SingletonThreadPool(Pool): default, and also requires a singleton connection if a :memory: database is being used. - Options are the same as those of Pool, as well as: + Options are the same as those of :class:`Pool`, as well as: - pool_size: 5 - The number of threads in which to maintain connections at once. + :param pool_size: The number of threads in which to maintain connections + at once. Defaults to five. + """ def __init__(self, creator, pool_size=5, **params): @@ -529,7 +531,8 @@ class QueuePool(Pool): def __init__(self, creator, pool_size=5, max_overflow=10, timeout=30, **params): - """Construct a QueuePool. + """ + Construct a QueuePool. :param creator: a callable function that returns a DB-API connection object. The function will be called with @@ -692,7 +695,8 @@ class StaticPool(Pool): """A Pool of exactly one connection, used for all requests.""" def __init__(self, creator, **params): - """Construct a StaticPool. + """ + Construct a StaticPool. :param creator: a callable function that returns a DB-API connection object. The function will be called with @@ -766,7 +770,8 @@ class AssertionPool(Pool): ## TODO: modify this to handle an arbitrary connection count. def __init__(self, creator, **params): - """Construct an AssertionPool. + """ + Construct an AssertionPool. :param creator: a callable function that returns a DB-API connection object. The function will be called with |
