MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / B

Class B

test/orm/test_eager_relations.py:197–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195 A.anything = column_property(A.id + 1000)
196
197 class B(A):
198 __tablename__ = "b"
199 account_id = Column(Integer, ForeignKey("a.id"), primary_key=True)
200 x_id = Column(Integer, ForeignKey("x.id"), nullable=False)
201 __mapper_args__ = {"polymorphic_identity": "named"}
202
203 class X(decl_base):
204 __tablename__ = "x"

Callers 7

_fixture_dataMethod · 0.70
_fixture_dataMethod · 0.70
test_orderingMethod · 0.70
goMethod · 0.70
test_multi_path_loadMethod · 0.70
insert_dataMethod · 0.70

Calls 2

ColumnClass · 0.90
ForeignKeyClass · 0.90

Tested by 7

_fixture_dataMethod · 0.56
_fixture_dataMethod · 0.56
test_orderingMethod · 0.56
goMethod · 0.56
test_multi_path_loadMethod · 0.56
insert_dataMethod · 0.56