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