MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / Grunt

Class Grunt

test/perf/orm2010.py:38–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37
38class Grunt(Employee):
39 __tablename__ = "grunt"
40
41 id = Column(Integer, ForeignKey("employee.id"), primary_key=True)
42 savings = Column(Numeric)
43
44 employer_id = Column(Integer, ForeignKey("boss.id"))
45
46 employer = relationship(
47 "Boss", backref="employees", primaryjoin=Boss.id == employer_id
48 )
49
50 __mapper_args__ = {"polymorphic_identity": "grunt"}
51
52
53if os.path.exists("orm2010.db"):

Callers 1

runit_persistFunction · 0.85

Calls 3

ColumnClass · 0.90
ForeignKeyClass · 0.90
relationshipFunction · 0.90

Tested by

no test coverage detected