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

Method commit

pymysql/connections.py:499–507  ·  view source on GitHub ↗

Commit changes to stable storage. See `Connection.commit() `_ in the specification.

(self)

Source from the content-addressed store, hash-verified

497 self._read_ok_packet()
498
499 def commit(self):
500 """
501 Commit changes to stable storage.
502
503 See `Connection.commit() <https://www.python.org/dev/peps/pep-0249/#commit>`_
504 in the specification.
505 """
506 self._execute_command(COMMAND.COM_QUERY, "COMMIT")
507 self._read_ok_packet()
508
509 def rollback(self):
510 """

Callers 5

setUpMethod · 0.80
test_SSCursorMethod · 0.80
test_issue_17Method · 0.80

Calls 2

_execute_commandMethod · 0.95
_read_ok_packetMethod · 0.95

Tested by 5

setUpMethod · 0.64
test_SSCursorMethod · 0.64
test_issue_17Method · 0.64