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

Method insert_data

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

Source from the content-addressed store, hash-verified

66
67 @classmethod
68 def insert_data(cls, connection):
69 connection.execute(
70 cls.tables.some_table.insert(),
71 [
72 {"id": 1, "data": "collate data1"},
73 {"id": 2, "data": "collate data2"},
74 ],
75 )
76
77 def _assert_result(self, select, result):
78 with config.db.connect() as conn:

Callers

nothing calls this directly

Calls 2

executeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected