MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / Engineer

Class Engineer

test/ext/declarative/test_inheritance.py:152–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 __mapper_args__ = {"polymorphic_on": punion.c.type}
151
152 class Engineer(Employee):
153 __table__ = engineers
154 __mapper_args__ = {
155 "polymorphic_identity": "engineer",
156 "concrete": True,
157 }
158
159 class Manager(Employee):
160 __table__ = managers

Calls 2

ColumnClass · 0.90
StringClass · 0.90