MCPcopy
hub / github.com/django/django / commit

Method commit

django/db/backends/base/base.py:323–330  ·  view source on GitHub ↗

Commit a transaction and reset the dirty flag.

(self)

Source from the content-addressed store, hash-verified

321
322 @async_unsafe
323 def commit(self):
324 """Commit a transaction and reset the dirty flag."""
325 self.validate_thread_sharing()
326 self.validate_no_atomic_block()
327 self._commit()
328 # A successful commit means that the database connection works.
329 self.errors_occurred = False
330 self.run_commit_hooks_on_set_autocommit_on = True
331
332 @async_unsafe
333 def rollback(self):

Callers 11

commitFunction · 0.80
__exit__Method · 0.80
init_connection_stateMethod · 0.80
init_connection_stateMethod · 0.80
_commitMethod · 0.80
_commitMethod · 0.80
test_blockMethod · 0.80

Calls 3

_commitMethod · 0.95