Get a specific checkpoint.
(self, checkpoint_id: str)
| 395 | return [dict(row) for row in cur.fetchall()] |
| 396 | |
| 397 | def get_checkpoint(self, checkpoint_id: str) -> Optional[Dict]: |
| 398 | """Get a specific checkpoint.""" |
| 399 | with self._lock: |
| 400 | cur = self._conn.execute( |
| 401 | "SELECT * FROM checkpoints WHERE id = ?", (checkpoint_id,) |
| 402 | ) |
| 403 | row = cur.fetchone() |
| 404 | return dict(row) if row else None |
| 405 | |
| 406 | def delete_checkpoint(self, checkpoint_id: str) -> bool: |
| 407 | """Delete a checkpoint.""" |