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

Method insert_data

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

Source from the content-addressed store, hash-verified

1291
1292 @classmethod
1293 def insert_data(cls, connection):
1294 s = Session(connection)
1295 jill = cls.classes.Person(id=3, first_name="jill")
1296 s.add(jill)
1297 s.commit()
1298
1299 def test_update_plain(self):
1300 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