MCPcopy
hub / github.com/django/django / get_autocommit

Method get_autocommit

django/db/backends/base/base.py:452–455  ·  view source on GitHub ↗

Get the autocommit state.

(self)

Source from the content-addressed store, hash-verified

450 # ##### Generic transaction management methods #####
451
452 def get_autocommit(self):
453 """Get the autocommit state."""
454 self.ensure_connection()
455 return self.autocommit
456
457 def set_autocommit(
458 self, autocommit, force_begin_transaction_with_broken_autocommit=False

Callers 12

_savepoint_allowedMethod · 0.95
on_commitMethod · 0.95
handleMethod · 0.80
get_autocommitFunction · 0.80
__enter__Method · 0.80
init_connection_stateMethod · 0.80
init_connection_stateMethod · 0.80
as_sqlMethod · 0.80

Calls 1

ensure_connectionMethod · 0.95