(self, value)
| 460 | __del__ = _force_close |
| 461 | |
| 462 | def autocommit(self, value): |
| 463 | self.autocommit_mode = bool(value) |
| 464 | current = self.get_autocommit() |
| 465 | if value != current: |
| 466 | self._send_autocommit_mode() |
| 467 | |
| 468 | def get_autocommit(self): |
| 469 | return bool(self.server_status & SERVER_STATUS.SERVER_STATUS_AUTOCOMMIT) |