Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/__init__.py: 100%
19 statements
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-07 06:35 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-07 06:35 +0000
1# sqlalchemy/pool/__init__.py
2# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
3# <see AUTHORS file>
4#
5# This module is part of SQLAlchemy and is released under
6# the MIT License: https://www.opensource.org/licenses/mit-license.php
9"""Connection pooling for DB-API connections.
11Provides a number of connection pool implementations for a variety of
12usage scenarios and thread behavior requirements imposed by the
13application, DB-API or database itself.
15Also provides a DB-API 2.0 connection proxying mechanism allowing
16regular DB-API connect() methods to be transparently managed by a
17SQLAlchemy connection pool.
18"""
20from . import events
21from .base import _ConnectionFairy
22from .base import _ConnectionRecord
23from .base import _finalize_fairy
24from .base import Pool
25from .base import reset_commit
26from .base import reset_none
27from .base import reset_rollback
28from .dbapi_proxy import clear_managers
29from .dbapi_proxy import manage
30from .impl import AssertionPool
31from .impl import AsyncAdaptedQueuePool
32from .impl import FallbackAsyncAdaptedQueuePool
33from .impl import NullPool
34from .impl import QueuePool
35from .impl import SingletonThreadPool
36from .impl import StaticPool
39__all__ = [
40 "Pool",
41 "reset_commit",
42 "reset_none",
43 "reset_rollback",
44 "clear_managers",
45 "manage",
46 "AssertionPool",
47 "NullPool",
48 "QueuePool",
49 "AsyncAdaptedQueuePool",
50 "FallbackAsyncAdaptedQueuePool",
51 "SingletonThreadPool",
52 "StaticPool",
53]
55# as these are likely to be used in various test suites, debugging
56# setups, keep them in the sqlalchemy.pool namespace