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

Method rollback

pymysql/connections.py:509–517  ·  view source on GitHub ↗

Roll back the current transaction. See `Connection.rollback() `_ in the specification.

(self)

Source from the content-addressed store, hash-verified

507 self._read_ok_packet()
508
509 def rollback(self):
510 """
511 Roll back the current transaction.
512
513 See `Connection.rollback() <https://www.python.org/dev/peps/pep-0249/#rollback>`_
514 in the specification.
515 """
516 self._execute_command(COMMAND.COM_QUERY, "ROLLBACK")
517 self._read_ok_packet()
518
519 def show_warnings(self):
520 """Send the "SHOW WARNINGS" SQL command."""

Callers

nothing calls this directly

Calls 2

_execute_commandMethod · 0.95
_read_ok_packetMethod · 0.95

Tested by

no test coverage detected