MCPcopy
hub / github.com/PyMySQL/PyMySQL / autocommit

Method autocommit

pymysql/connections.py:462–466  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

460 __del__ = _force_close
461
462 def autocommit(self, value):
463 self.autocommit_mode = bool(value)
464 current = self.get_autocommit()
465 if value != current:
466 self._send_autocommit_mode()
467
468 def get_autocommit(self):
469 return bool(self.server_status & SERVER_STATUS.SERVER_STATUS_AUTOCOMMIT)

Callers 3

connectMethod · 0.95
test_autocommitMethod · 0.80
test_issue_114Method · 0.80

Calls 2

get_autocommitMethod · 0.95
_send_autocommit_modeMethod · 0.95

Tested by 2

test_autocommitMethod · 0.64
test_issue_114Method · 0.64