Skip to content

Add SQLite-backed registry with JSON migration support#15

Open
kdush wants to merge 3 commits intoVectifyAI:mainfrom
kdush:feat/sqlite-storage-backend
Open

Add SQLite-backed registry with JSON migration support#15
kdush wants to merge 3 commits intoVectifyAI:mainfrom
kdush:feat/sqlite-storage-backend

Conversation

@kdush
Copy link
Copy Markdown

@kdush kdush commented Apr 11, 2026

Summary

Add SQLite-backed registry as the default storage backend, with automatic JSON migration support.

Changes

  • add DbRegistry class with SQLite backend, WAL mode, and JSON migration
  • add storage_backend config option (sqlite | json)
  • update CLI commands to use get_registry() factory
  • document storage backend options and migration behavior
  • add tests for SQLite registry, migration, and backend selection

Testing

  • 25 new tests passed for SQLite backend and migration
  • all existing tests pass
  • end-to-end verified: init, add, query, status, list
  • confirmed SQLite creates hashes.db, hashes.db-wal, hashes.db-shm

Backward Compatibility

  • storage_backend: json still works for existing setups
  • automatic migration from hashes.json to hashes.db when switching to SQLite
  • hashes.json preserved after migration for safety

@kdush kdush force-pushed the feat/sqlite-storage-backend branch from a56ee15 to 9436ad6 Compare April 11, 2026 04:50
@kdush kdush force-pushed the feat/sqlite-storage-backend branch from 9436ad6 to 71f9b4f Compare April 12, 2026 02:43
@kdush kdush force-pushed the feat/sqlite-storage-backend branch from 71f9b4f to 9124f51 Compare April 12, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant