vaultik/internal/database
sneak e29a995120 Refactor: Move Vaultik struct and methods to internal/vaultik package
- Created new internal/vaultik package with unified Vaultik struct
- Moved all command methods (snapshot, info, prune, verify) from CLI to vaultik package
- Implemented single constructor that handles crypto capabilities automatically
- Added CanDecrypt() method to check if decryption is available
- Updated all CLI commands to use the new vaultik.Vaultik struct
- Removed old fragmented App structs and WithCrypto wrapper
- Fixed context management - Vaultik now owns its context lifecycle
- Cleaned up package imports and dependencies

This creates a cleaner separation between CLI/Cobra code and business logic,
with all vaultik operations now centralized in the internal/vaultik package.
2025-07-26 14:47:26 +02: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 Major refactoring: UUID-based storage, streaming architecture, and CLI improvements 2025-07-22 14:56:44 +02: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