Delete a checkpoint.
(self, checkpoint_id: str)
| 404 | return dict(row) if row else None |
| 405 | |
| 406 | def delete_checkpoint(self, checkpoint_id: str) -> bool: |
| 407 | """Delete a checkpoint.""" |
| 408 | with self._lock: |
| 409 | cur = self._conn.execute( |
| 410 | "DELETE FROM checkpoints WHERE id = ?", (checkpoint_id,) |
| 411 | ) |
| 412 | self._conn.commit() |
| 413 | return cur.rowcount > 0 |
| 414 | |
| 415 | def execute(self, sql: str, params: tuple = None): |
| 416 | """Execute arbitrary SQL (for schema extensions).""" |
no test coverage detected