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

Method begin

pymysql/connections.py:494–497  ·  view source on GitHub ↗

Begin transaction.

(self)

Source from the content-addressed store, hash-verified

492 self._read_ok_packet()
493
494 def begin(self):
495 """Begin transaction."""
496 self._execute_command(COMMAND.COM_QUERY, "BEGIN")
497 self._read_ok_packet()
498
499 def commit(self):
500 """

Callers 1

test_SSCursorMethod · 0.80

Calls 2

_execute_commandMethod · 0.95
_read_ok_packetMethod · 0.95

Tested by 1

test_SSCursorMethod · 0.64