vaultik/internal/database
sneak 8529ae9735 Implement SQLite index database layer
- Add pure Go SQLite driver (modernc.org/sqlite) to avoid CGO dependency
- Implement database connection management with WAL mode
- Add write mutex for serializing concurrent writes
- Create schema for all tables matching DESIGN.md specifications
- Implement repository pattern for all database entities:
  - Files, FileChunks, Chunks, Blobs, BlobChunks, ChunkFiles, Snapshots
- Add transaction support with proper rollback handling
- Add fatal error handling for database integrity issues
- Add snapshot fields for tracking file sizes and compression ratios
- Make index path configurable via VAULTIK_INDEX_PATH environment variable
- Add comprehensive test coverage for all repositories
- Add format check to Makefile to ensure code formatting
2025-07-20 10:56:30 +02:00
..
blob_chunks_test.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00
blob_chunks.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00
blobs_test.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00
blobs.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00
chunk_files_test.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00
chunk_files.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00
chunks_test.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00
chunks.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00
database_test.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00
database.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00
errors.go Implement local SQLite index database with repositories 2025-07-20 10:26:15 +02:00
file_chunks_test.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00
file_chunks.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00
files_test.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00
files.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00
models.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00
module.go Implement local SQLite index database with repositories 2025-07-20 10:26:15 +02:00
repositories_test.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00
repositories.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00
snapshots_test.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00
snapshots.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00