diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-01-21 18:41:48 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-01-21 20:09:39 -0500 |
commit | c506e01324cac524ee15257d31d9821aa8a23b95 (patch) | |
tree | e3fef4f33a05b4f8cacd21a7a3e42089694f9a85 /lib/sqlalchemy/__init__.py | |
parent | d8ac1e9e6bfc931d2f14f9846d6924106f56b7e6 (diff) | |
download | sqlalchemy-c506e01324cac524ee15257d31d9821aa8a23b95.tar.gz |
Reorganize core event modules to avoid import cycles
sqlalchemy.sql.naming was causing a full import of
engine due to the DDLEvents dependency. Break out pool,
DDL and engine events into new modules specific to those
packages; resolve some other import cycles in Core also.
Change-Id: Ife8d217e58a26ab3605dd80ee70837968f957eaf
Diffstat (limited to 'lib/sqlalchemy/__init__.py')
-rw-r--r-- | lib/sqlalchemy/__init__.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/sqlalchemy/__init__.py b/lib/sqlalchemy/__init__.py index bff833d87..2d67db24c 100644 --- a/lib/sqlalchemy/__init__.py +++ b/lib/sqlalchemy/__init__.py @@ -6,6 +6,9 @@ # the MIT License: http://www.opensource.org/licenses/mit-license.php from . import util as _util # noqa +from .engine import create_engine # noqa +from .engine import create_mock_engine # noqa +from .engine import engine_from_config # noqa from .inspection import inspect # noqa from .schema import BLANK_SCHEMA # noqa from .schema import CheckConstraint # noqa @@ -118,14 +121,6 @@ from .types import UnicodeText # noqa from .types import VARBINARY # noqa from .types import VARCHAR # noqa -from .engine import create_engine # noqa nosort -from .engine import engine_from_config # noqa nosort -from .engine import create_mock_engine # noqa nosort - -# these are placed last because there are -# cross dependencies between sqlalchemy.sql and -# sqlalchemy.engine that cause import cycles - __version__ = "1.4.0b1" |