feat: add codegraph snapshot for DB backup and restore#192
Conversation
|
Claude finished @carlos-alm's task —— View job PR Review:
|
Greptile SummaryThis PR adds a robust snapshot management system for the codegraph database, enabling atomic backups and instant rollbacks for CI orchestration and refactoring workflows. Key Changes:
Security & Safety:
Dependency Updates:
Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 9ce8985 |
Adds save/restore/list/delete subcommands using VACUUM INTO for atomic WAL-free snapshots. Enables orchestrators and CI to checkpoint before refactoring passes and instantly rollback without full rebuilds. Impact: 7 functions changed, 5 affected
9ce8985 to
a109ccc
Compare
|
Claude finished @carlos-alm's task —— View job Claude is reviewing this PR PR Review:
|
Mark backlog items as DONE: streaming/pagination (#207), hybrid BM25+semantic search (#198), CODEOWNERS (#195), snapshots (#192), TF-IDF search (subsumed by #198). Update README: add CODEOWNERS, snapshots, hybrid search, pagination sections; update MCP tool count to 26/27; add --mode, --ndjson, --limit, --offset flags; update feature comparison tables with verified competitor data.
Mark backlog items as DONE: streaming/pagination (#207), hybrid BM25+semantic search (#198), CODEOWNERS (#195), snapshots (#192), TF-IDF search (subsumed by #198). Update README: add CODEOWNERS, snapshots, hybrid search, pagination sections; update MCP tool count to 26/27; add --mode, --ndjson, --limit, --offset flags; update feature comparison tables with verified competitor data.
Keep DONE markings for snapshots (PR #192) while incorporating main's structural changes (ID 30 repositioned, Foundation-aligned wording update, OWASP moved to Tier 3). Impact: 99 functions changed, 103 affected
Mark backlog items as DONE: streaming/pagination (#207), hybrid BM25+semantic search (#198), CODEOWNERS (#195), snapshots (#192), TF-IDF search (subsumed by #198). Update README: add CODEOWNERS, snapshots, hybrid search, pagination sections; update MCP tool count to 26/27; add --mode, --ndjson, --limit, --offset flags; update feature comparison tables with verified competitor data.
Summary
codegraph snapshotsubcommand group withsave,restore,list, anddeletecommandsVACUUM INTOfor atomic, WAL-free snapshots stored in.codegraph/snapshots/snapshotSave,snapshotRestore,snapshotList,snapshotDelete,snapshotsDir,validateSnapshotName) via the programmatic APITest plan
snapshot save,list,list --json,restore,delete