MCPcopy Index your code
hub / github.com/PyMySQL/PyMySQL / _send_autocommit_mode

Method _send_autocommit_mode

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

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

(self)

Source from the content-addressed store, hash-verified

480 return ok
481
482 def _send_autocommit_mode(self):
483 """Set whether or not to commit after every execute()."""
484 self._execute_command(
485 COMMAND.COM_QUERY, "SET AUTOCOMMIT = %s" % self.escape(self.autocommit_mode)
486 )
487 self._read_ok_packet()
488
489 def begin(self):
490 """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