here's the recipe to do it with tables:
https://bitbucket.org/zzzeek/sqlalchemy/wiki/UsageRecipes/DependentTables
should be a brief exercise to link this to declared classes.
On Mon, Jan 29, 2018 at 8:44 AM, Chris Withers wrote:
> Hi All,
>
> How can I introspect from a
Hi All,
How can I introspect from a declaratively mapped model all the other
models/tables that have foreign keys to it?
This keeps like something the ORM layer must know about...
cheers,
Chris
--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper
http://www.sqlalchemy.org/