[sqlalchemy] Re: sqlalchemy foreignkey relation with inheritance

2017-09-22 Thread John Smith
Whoa! Fantastic! Thank you very much!!! -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. ---

[sqlalchemy] Re: sqlalchemy foreignkey relation with inheritance

2017-09-22 Thread John Smith
Btw, I'm libraries versions are SQLAlchemy==1.1.14 psycopg2==2.7.1 -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve

[sqlalchemy] sqlalchemy foreignkey relation with inheritance

2017-09-22 Thread John Smith
I have the following database schema: *Table "Parent"*: 1. id - primary key identifier. 2. type - polymorphic_identity. 3. name - string data column. *Table "Child"* - inherits Parent: 1. id - primary key identifier. 2. parent_id - foreignkey to Parent. 3. category - string data column.