Commit changes to stable storage. See `Connection.commit() `_ in the specification.
(self)
| 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 | """ |