diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-12-03 13:46:41 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-12-03 13:46:41 -0500 |
commit | 36e1aa0afdf7e42f88426da4b2e9ee631d16728c (patch) | |
tree | 233b2308824abd1faab762e5df7fbcd815049cad /lib/sqlalchemy/engine/reflection.py | |
parent | 21feea9c1d278036cc37add813b72d0dbd4b1754 (diff) | |
download | sqlalchemy-36e1aa0afdf7e42f88426da4b2e9ee631d16728c.tar.gz |
- 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.
Diffstat (limited to 'lib/sqlalchemy/engine/reflection.py')
0 files changed, 0 insertions, 0 deletions