vaultik/internal/database
sneak bbe09ec5b5 Remove dangerous database recovery that deleted journal/WAL files
SQLite handles crash recovery automatically when opening a database.
The previous recoverDatabase() function was deleting journal and WAL
files BEFORE opening the database, which prevented SQLite from
recovering incomplete transactions and caused database corruption
after Ctrl+C or crashes.

This was causing "database disk image is malformed" errors after
interrupting a backup operation.
2025-12-23 09:16:01 +07:00
..
schema Refactor blob storage to use UUID primary keys and implement streaming chunking 2025-07-22 07:43:39 +02:00
blob_chunks_test.go Fix foreign key constraints and improve snapshot tracking 2025-07-26 02:22:25 +02:00
blob_chunks.go Fix foreign key constraints and improve snapshot tracking 2025-07-26 02:22:25 +02:00
blobs_test.go Refactor blob storage to use UUID primary keys and implement streaming chunking 2025-07-22 07:43:39 +02:00
blobs.go Major refactoring: UUID-based storage, streaming architecture, and CLI improvements 2025-07-22 14:56:44 +02:00
cascade_debug_test.go Fix foreign key constraints and improve snapshot tracking 2025-07-26 02:22:25 +02:00
chunk_files_test.go Fix foreign key constraints and improve snapshot tracking 2025-07-26 02:22:25 +02:00
chunk_files.go Fix file content change handling and improve log messages 2025-07-26 02:38:50 +02:00
chunks_ext.go Fix foreign key constraints and improve snapshot tracking 2025-07-26 02:22:25 +02:00
chunks_test.go Fix foreign key constraints and improve snapshot tracking 2025-07-26 02:22:25 +02:00
chunks.go Refactor: Move Vaultik struct and methods to internal/vaultik package 2025-07-26 14:47:26 +02:00
database_test.go Fix foreign key constraints and improve snapshot tracking 2025-07-26 02:22:25 +02:00
database.go Remove dangerous database recovery that deleted journal/WAL files 2025-12-23 09:16:01 +07:00
errors.go Implement local SQLite index database with repositories 2025-07-20 10:26:15 +02:00
file_chunks_test.go Fix foreign key constraints and improve snapshot tracking 2025-07-26 02:22:25 +02:00
file_chunks.go Major refactoring: UUID-based storage, streaming architecture, and CLI improvements 2025-07-22 14:56:44 +02:00
files_test.go Implement SQLite index database layer 2025-07-20 10:56:30 +02:00
files.go Fix foreign key constraints and improve snapshot tracking 2025-07-26 02:22:25 +02:00
models.go Fix foreign key constraints and improve snapshot tracking 2025-07-26 02:22:25 +02:00
module.go Refactor blob storage to use UUID primary keys and implement streaming chunking 2025-07-22 07:43:39 +02:00
repositories_test.go Fix foreign key constraints and improve snapshot tracking 2025-07-26 02:22:25 +02:00
repositories.go Major refactoring: UUID-based storage, streaming architecture, and CLI improvements 2025-07-22 14:56:44 +02:00
repository_comprehensive_test.go Fix foreign key constraints and improve snapshot tracking 2025-07-26 02:22:25 +02:00
repository_debug_test.go Major refactoring: UUID-based storage, streaming architecture, and CLI improvements 2025-07-22 14:56:44 +02:00
repository_edge_cases_test.go Fix foreign key constraints and improve snapshot tracking 2025-07-26 02:22:25 +02:00
schema.sql Fix foreign key constraints and improve snapshot tracking 2025-07-26 02:22:25 +02:00
snapshots_test.go Refactor blob storage to use UUID primary keys and implement streaming chunking 2025-07-22 07:43:39 +02:00
snapshots.go Refactor: Move Vaultik struct and methods to internal/vaultik package 2025-07-26 14:47:26 +02:00
uploads.go Fix foreign key constraints and improve snapshot tracking 2025-07-26 02:22:25 +02:00