MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / _send_autocommit_mode

Method _send_autocommit_mode

pymysql/connections.py:487–492  ·  view source on GitHub ↗

Set whether or not to commit after every execute().

(self)

Source from the content-addressed store, hash-verified

485 return ok
486
487 def _send_autocommit_mode(self):
488 """Set whether or not to commit after every execute()."""
489 self._execute_command(
490 COMMAND.COM_QUERY, "SET AUTOCOMMIT = %s" % self.escape(self.autocommit_mode)
491 )
492 self._read_ok_packet()
493
494 def begin(self):
495 """Begin transaction."""

Callers 1

autocommitMethod · 0.95

Calls 3

_execute_commandMethod · 0.95
escapeMethod · 0.95
_read_ok_packetMethod · 0.95

Tested by

no test coverage detected