MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / add_child

Method add_child

test/ext/test_associationproxy.py:1530–1532  ·  view source on GitHub ↗
(parent_name, child_name)

Source from the content-addressed store, hash-verified

1528 session = fixture_session()
1529
1530 def add_child(parent_name, child_name):
1531 parent = session.query(Parent).filter_by(name=parent_name).one()
1532 parent.kids.append(child_name)
1533
1534 add_child("p1", "c1")
1535 gc_collect()

Callers

nothing calls this directly

Calls 4

oneMethod · 0.45
filter_byMethod · 0.45
queryMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected