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

Method insert_data

lib/sqlalchemy/testing/suite/test_select.py:760–774  ·  view source on GitHub ↗
(cls, connection)

Source from the content-addressed store, hash-verified

758
759 @classmethod
760 def insert_data(cls, connection):
761 connection.execute(
762 cls.tables.a.insert(),
763 [{"id": 1}, {"id": 2}, {"id": 3}, {"id": 4}, {"id": 5}],
764 )
765
766 connection.execute(
767 cls.tables.b.insert(),
768 [
769 {"id": 1, "a_id": 1},
770 {"id": 2, "a_id": 1},
771 {"id": 4, "a_id": 2},
772 {"id": 5, "a_id": 3},
773 ],
774 )
775
776 def test_inner_join_fk(self):
777 a, b = self.tables("a", "b")

Callers

nothing calls this directly

Calls 2

executeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected