MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / insert_data

Method insert_data

test/ext/test_associationproxy.py:3786–3797  ·  test/ext/test_associationproxy.py::ScopeBehaviorTest.insert_data
(cls, connection)

Source from the content-addressed store, hash-verified

3784
3785 @classmethod
3786 def insert_data(cls, connection):
3787 A, B = cls.classes(class="st">"A", class="st">"B")
3788
3789 s = Session(connection)
3790 s.add_all(
3791 [
3792 A(id=1, bs=[B(data=class="st">"b1"), B(data=class="st">"b2")]),
3793 A(id=2, bs=[B(data=class="st">"b3"), B(data=class="st">"b4")]),
3794 ]
3795 )
3796 s.commit()
3797 s.close()
3798
3799 def test_plain_collection_gc(self):
3800 A, B = self.classes(class="st">"A", class="st">"B")

Callers

nothing calls this directly

Calls 6

add_allMethod · 0.95
commitMethod · 0.95
closeMethod · 0.95
SessionClass · 0.90
AClass · 0.70
BClass · 0.70

Tested by

no test coverage detected