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

Method insert_data

test/orm/test_bundle.py:74–90  ·  view source on GitHub ↗
(cls, connection)

Source from the content-addressed store, hash-verified

72
73 @classmethod
74 def insert_data(cls, connection):
75 sess = Session(connection)
76 sess.add_all(
77 [
78 cls.classes.Data(
79 d1="d%dd1" % i,
80 d2="d%dd2" % i,
81 d3="d%dd3" % i,
82 others=[
83 cls.classes.Other(o1="d%do%d" % (i, j))
84 for j in range(5)
85 ],
86 )
87 for i in range(10)
88 ]
89 )
90 sess.commit()
91
92 def test_tuple_suggests_bundle(self, connection):
93 Data, Other = self.classes("Data", "Other")

Callers

nothing calls this directly

Calls 3

add_allMethod · 0.95
commitMethod · 0.95
SessionClass · 0.90

Tested by

no test coverage detected