otherwise, it fails if you import from ext before orm:
from sqlalchemy import *
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import *
and then do a lazyload, as the ext.baked importlater is not
initialized.
Change-Id: I24dcbfc9ca9022316da28507772562833e45dd95
if not (name.startswith('_') or _inspect.ismodule(obj)))
_sa_util.dependencies.resolve_all("sqlalchemy.orm")
+ _sa_util.dependencies.resolve_all("sqlalchemy.ext")
__go(locals())
"sqlalchemy.orm.strategy_options")
def _emit_lazyload(
self, strategy_options, session, state, ident_key, passive):
-
# emit lazy load now using BakedQuery, to cut way down on the overhead
# of generating queries.
# there are two big things we are trying to guard against here: