__init__.py 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # pool/__init__.py
  2. # Copyright (C) 2005-2025 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
  7. """Connection pooling for DB-API connections.
  8. Provides a number of connection pool implementations for a variety of
  9. usage scenarios and thread behavior requirements imposed by the
  10. application, DB-API or database itself.
  11. Also provides a DB-API 2.0 connection proxying mechanism allowing
  12. regular DB-API connect() methods to be transparently managed by a
  13. SQLAlchemy connection pool.
  14. """
  15. from . import events
  16. from .base import _AdhocProxiedConnection as _AdhocProxiedConnection
  17. from .base import _ConnectionFairy as _ConnectionFairy
  18. from .base import _ConnectionRecord
  19. from .base import _CreatorFnType as _CreatorFnType
  20. from .base import _CreatorWRecFnType as _CreatorWRecFnType
  21. from .base import _finalize_fairy
  22. from .base import _ResetStyleArgType as _ResetStyleArgType
  23. from .base import ConnectionPoolEntry as ConnectionPoolEntry
  24. from .base import ManagesConnection as ManagesConnection
  25. from .base import Pool as Pool
  26. from .base import PoolProxiedConnection as PoolProxiedConnection
  27. from .base import PoolResetState as PoolResetState
  28. from .base import reset_commit as reset_commit
  29. from .base import reset_none as reset_none
  30. from .base import reset_rollback as reset_rollback
  31. from .impl import AssertionPool as AssertionPool
  32. from .impl import AsyncAdaptedQueuePool as AsyncAdaptedQueuePool
  33. from .impl import (
  34. FallbackAsyncAdaptedQueuePool as FallbackAsyncAdaptedQueuePool,
  35. )
  36. from .impl import NullPool as NullPool
  37. from .impl import QueuePool as QueuePool
  38. from .impl import SingletonThreadPool as SingletonThreadPool
  39. from .impl import StaticPool as StaticPool