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

Method insert_data

test/ext/test_hybrid.py:1333–1337  ·  view source on GitHub ↗
(cls, connection)

Source from the content-addressed store, hash-verified

1331
1332 @classmethod
1333 def insert_data(cls, connection):
1334 s = Session(connection)
1335 jill = cls.classes.Person(id=3, first_name="jill")
1336 s.add(jill)
1337 s.commit()
1338
1339 def test_update_plain(self):
1340 Person = self.classes.Person

Callers

nothing calls this directly

Calls 3

addMethod · 0.95
commitMethod · 0.95
SessionClass · 0.90

Tested by

no test coverage detected