MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / insert_data

Method insert_data

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

Source from the content-addressed store, hash-verified

60
61 @classmethod
62 def insert_data(cls, connection):
63 connection.execute(
64 cls.tables.some_table.insert(),
65 [
66 {"id": 1, "data": "collate data1"},
67 {"id": 2, "data": "collate data2"},
68 ],
69 )
70
71 def _assert_result(self, select, result):
72 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