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

Method rollback

pymysql/connections.py:504–512  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

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

Callers 3

test_rollbackMethod · 0.80
test_transactionsMethod · 0.80
test_truncationMethod · 0.80

Calls 2

_execute_commandMethod · 0.95
_read_ok_packetMethod · 0.95

Tested by 3

test_rollbackMethod · 0.64
test_transactionsMethod · 0.64
test_truncationMethod · 0.64