__init__.py 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # engine/__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. """SQL connections, SQL execution and high-level DB-API interface.
  8. The engine package defines the basic components used to interface
  9. DB-API modules with higher-level statement construction,
  10. connection-management, execution and result contexts. The primary
  11. "entry point" class into this package is the Engine and its public
  12. constructor ``create_engine()``.
  13. """
  14. from . import events
  15. from . import util
  16. from .base import Connection
  17. from .base import Engine
  18. from .base import NestedTransaction
  19. from .base import RootTransaction
  20. from .base import Transaction
  21. from .base import TwoPhaseTransaction
  22. from .create import create_engine
  23. from .create import engine_from_config
  24. from .cursor import BaseCursorResult
  25. from .cursor import BufferedColumnResultProxy
  26. from .cursor import BufferedColumnRow
  27. from .cursor import BufferedRowResultProxy
  28. from .cursor import CursorResult
  29. from .cursor import FullyBufferedResultProxy
  30. from .cursor import LegacyCursorResult
  31. from .cursor import ResultProxy
  32. from .interfaces import AdaptedConnection
  33. from .interfaces import Compiled
  34. from .interfaces import Connectable
  35. from .interfaces import CreateEnginePlugin
  36. from .interfaces import Dialect
  37. from .interfaces import ExceptionContext
  38. from .interfaces import ExecutionContext
  39. from .interfaces import TypeCompiler
  40. from .mock import create_mock_engine
  41. from .reflection import Inspector
  42. from .result import ChunkedIteratorResult
  43. from .result import FrozenResult
  44. from .result import IteratorResult
  45. from .result import MappingResult
  46. from .result import MergedResult
  47. from .result import Result
  48. from .result import result_tuple
  49. from .result import ScalarResult
  50. from .row import BaseRow
  51. from .row import LegacyRow
  52. from .row import Row
  53. from .row import RowMapping
  54. from .url import make_url
  55. from .url import URL
  56. from .util import connection_memoize
  57. from ..sql import ddl