MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / go

Method go

test/orm/test_eager_relations.py:4647–4666  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4645 sess.expunge_all()
4646
4647 def go():
4648 d = sess.query(Node).filter_by(data="n1").all()[0]
4649 eq_(
4650 Node(
4651 data="n1",
4652 children=[
4653 Node(data="n11"),
4654 Node(
4655 data="n12",
4656 children=[
4657 Node(data="n121"),
4658 Node(data="n122"),
4659 Node(data="n123"),
4660 ],
4661 ),
4662 Node(data="n13"),
4663 ],
4664 ),
4665 d,
4666 )
4667
4668 self.assert_sql_count(testing.db, go, 1)
4669

Callers

nothing calls this directly

Calls 12

eq_Function · 0.90
undeferFunction · 0.90
defaultloadFunction · 0.90
joinedloadFunction · 0.90
undeferMethod · 0.80
NodeClass · 0.70
allMethod · 0.45
filter_byMethod · 0.45
queryMethod · 0.45
firstMethod · 0.45
order_byMethod · 0.45
optionsMethod · 0.45

Tested by

no test coverage detected