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.0.1, created at 2022-12-25 06:11 +0000

1# sqlalchemy/pool/__init__.py 

2# Copyright (C) 2005-2022 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 

8 

9"""Connection pooling for DB-API connections. 

10 

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. 

14 

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""" 

19 

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 

37 

38 

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] 

54 

55# as these are likely to be used in various test suites, debugging 

56# setups, keep them in the sqlalchemy.pool namespace