MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / before_insert

Method before_insert

test/orm/test_unitofwork.py:2211–2213  ·  view source on GitHub ↗
(self, mapper, connection, instance)

Source from the content-addressed store, hash-verified

2209
2210 class Events:
2211 def before_insert(self, mapper, connection, instance):
2212 self.current_instance = instance
2213 names.append(instance.name)
2214
2215 def after_insert(self, mapper, connection, instance):
2216 assert instance is self.current_instance

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected