]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The :class:`.DeferredReflection` class has been enhanced to provide
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 3 Dec 2013 18:46:41 +0000 (13:46 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 3 Dec 2013 18:46:41 +0000 (13:46 -0500)
commit36e1aa0afdf7e42f88426da4b2e9ee631d16728c
tree233b2308824abd1faab762e5df7fbcd815049cad
parent21feea9c1d278036cc37add813b72d0dbd4b1754
- The :class:`.DeferredReflection` class has been enhanced to provide
automatic reflection support for the "secondary" table referred
to by a :func:`.relationship`.   "secondary", when specified
either as a string table name, or as a :class:`.Table` object with
only a name and :class:`.MetaData` object will also be included
in the reflection process when :meth:`.DeferredReflection.prepare`
is called. [ticket:2865]
- clsregistry._resolver() now uses a stateful _class_resolver()
class in order to handle the work of mapping strings to
objects.   This is to provide for simpler extensibility, namely
a ._resolvers collection of ad-hoc name resolution functions;
the DeferredReflection class adds its own resolver here in order
to handle relationship(secondary) names which generate new
Table objects.
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/ext/declarative/api.py
lib/sqlalchemy/ext/declarative/clsregistry.py
test/ext/declarative/test_reflection.py