python - SQLAlchemy variable relationship -
i'm unclear on how configure sqlalchemy following scenario:
- several tables of varying nature.
- all tables need reference one-to-many
notestable - would have 1
notestable, servicing these other tables, relationship based onparent_typecolumn innotestable

for example: if relation_type items, relationship_id refers pk of table_items table. if relation_type orders relationship_id refer pk of table_orders
imo, problem describe best solved using generic associations example.
closest example of 3 examples listed discriminator_on_association.py
Comments
Post a Comment