SQLAlchemy inheritance filter on all columns
问题 So I want to execute a filter on all Columns of my Database Model which uses table inheritance. I am by no means sure if this is actually do-able or not. To get started let's use the same inheritance example from the SQLAlchemy Doc just slightly modified. I've omitted the imports here. class Employee(Base): __tablename__ = 'employee' id = Column(Integer, primary_key=True) name = Column(String(50)) type = Column(String(50)) __mapper_args__ = { 'polymorphic_identity':'employee', 'polymorphic_on