(self, value)
| 465 | __del__ = _force_close |
| 466 | |
| 467 | def autocommit(self, value): |
| 468 | self.autocommit_mode = bool(value) |
| 469 | current = self.get_autocommit() |
| 470 | if value != current: |
| 471 | self._send_autocommit_mode() |
| 472 | |
| 473 | def get_autocommit(self): |
| 474 | return bool(self.server_status & SERVER_STATUS.SERVER_STATUS_AUTOCOMMIT) |