Andrew Phillips
|
dd8f828ed3
|
refactor: update function parameters to use references where appropriate
|
2025-05-14 22:09:23 -03:00 |
|
Andrew Phillips
|
d1edd20845
|
feat: extract digest and compression type handling into common command functions
|
2025-05-14 21:54:45 -03:00 |
|
Andrew Phillips (aider)
|
947ed55fb7
|
refactor: use params! macro for SQL query parameters
|
2025-05-14 21:22:28 -03:00 |
|
Andrew Phillips
|
4d2ff50992
|
refactor: use params! macro for consistent and safer query parameter passing
|
2025-05-14 21:20:09 -03:00 |
|
Andrew Phillips (aider)
|
2694000c9b
|
feat: add get_item_meta_name function to retrieve specific meta by name
|
2025-05-14 17:32:55 -03:00 |
|
Andrew Phillips (aider)
|
075c571e53
|
fix: change return type to anyhow::Error to support ? operator
|
2025-05-14 17:22:22 -03:00 |
|
Andrew Phillips (aider)
|
0774e36184
|
fix: add missing imports and fix return type in store_item_digest_value
|
2025-05-14 17:20:28 -03:00 |
|
Andrew Phillips (aider)
|
4ac2943683
|
refactor: update store_item_digest_value calls to use new argument types
|
2025-05-14 17:18:11 -03:00 |
|
Andrew Phillips (aider)
|
3c4938857f
|
feat: update store_item_digest_value to take owned Item and String
|
2025-05-14 17:16:31 -03:00 |
|
Andrew Phillips (aider)
|
f049406858
|
feat: Update store_item_digest_value to use DigestType enum for digest type parameter
|
2025-05-14 17:14:19 -03:00 |
|
Andrew Phillips (aider)
|
72a8337f4e
|
refactor: use store_item_digest_value in mode_update and mode_save
|
2025-05-14 17:12:18 -03:00 |
|
Andrew Phillips (aider)
|
75ac080591
|
feat: add store_item_digest_value function to common.rs
|
2025-05-14 17:09:18 -03:00 |
|
Andrew Phillips
|
5790aa6993
|
refactor: rename variable to clarify digest metadata purpose
|
2025-05-14 17:04:11 -03:00 |
|
Andrew Phillips (aider)
|
ac4660684d
|
fix: clone moved values to resolve ownership issues
|
2025-05-14 16:32:04 -03:00 |
|
Andrew Phillips (aider)
|
477a03fbb7
|
feat: store digest in meta entry with get_digest_type_meta as name
|
2025-05-14 16:29:27 -03:00 |
|
Andrew Phillips (aider)
|
7353fbd9b4
|
feat: add get_digest_type_meta function to format digest type as lowercase string
|
2025-05-14 16:15:08 -03:00 |
|
Andrew Phillips
|
bbdfe19836
|
feat: add compression and digest support with database schema updates
|
2025-05-14 09:45:51 -03:00 |
|
Andrew Phillips (aider)
|
9b61a37036
|
refactor: Rename env variable to keep_cmd in tests
|
2025-05-14 09:45:04 -03:00 |
|
Andrew Phillips
|
f089c8002d
|
refactor: rename env variable to keep_cmd for clarity
|
2025-05-14 09:44:51 -03:00 |
|
Andrew Phillips
|
412f5d74d0
|
test: add command and status to assertion messages
|
2025-05-14 09:34:52 -03:00 |
|
Andrew Phillips (aider)
|
dc76b6af52
|
refactor: use compression_engine.open for file handling in update mode
|
2025-05-13 19:02:51 -03:00 |
|
Andrew Phillips (aider)
|
51acd0933f
|
fix: Implement digest calculation loop and update item in DB
|
2025-05-13 19:01:52 -03:00 |
|
Andrew Phillips
|
932b32edef
|
refactor: move compression engine init and reorganize digest recalculation logic
|
2025-05-13 19:01:44 -03:00 |
|
Andrew Phillips (aider)
|
ce44134ab7
|
refactor: replace if let with match for digest type handling
|
2025-05-13 18:45:13 -03:00 |
|
Andrew Phillips (aider)
|
6d2640650c
|
fix: remove unused imports and fix as_ref usage
|
2025-05-13 18:44:03 -03:00 |
|
Andrew Phillips (aider)
|
98d10e787c
|
style: fix indentation in mode_update digest calculation
|
2025-05-13 18:43:17 -03:00 |
|
Andrew Phillips (aider)
|
f419392c8f
|
fix: close unclosed delimiter in update.rs
|
2025-05-13 18:42:36 -03:00 |
|
Andrew Phillips (aider)
|
10c3e2d5c8
|
fix: add ResultExt to anyhow imports
|
2025-05-13 18:41:53 -03:00 |
|
Andrew Phillips (aider)
|
d58dea9c3f
|
fix: add bail to anyhow import in update.rs
|
2025-05-13 18:41:30 -03:00 |
|
Andrew Phillips (aider)
|
64c4dce492
|
fix: add Context to anyhow import
|
2025-05-13 18:41:08 -03:00 |
|
Andrew Phillips (aider)
|
6d724c73b9
|
fix: Handle optional digest_type when checking for digest recalculation
|
2025-05-13 18:40:39 -03:00 |
|
Andrew Phillips
|
e7496b8978
|
fix: Fix COMPRESSION typo, correct DIGEST log tag, and refactor mode_update cloning
|
2025-05-13 18:36:23 -03:00 |
|
Andrew Phillips (aider)
|
eaeb83f12e
|
fix: add rusqlite Connection import and fix item_path scope
|
2025-05-13 18:31:46 -03:00 |
|
Andrew Phillips (aider)
|
d8e0cb9758
|
fix: add DigestType and get_digest_engine imports, fix item_path scope
|
2025-05-13 18:30:31 -03:00 |
|
Andrew Phillips (aider)
|
9a99bbd8bc
|
feat: Recalculate digest if digest_type is set but digest_value is missing
|
2025-05-13 18:26:42 -03:00 |
|
Andrew Phillips
|
62aeb05e76
|
refactor: improve option handling and variable naming in show_item
|
2025-05-13 18:18:29 -03:00 |
|
Andrew Phillips (aider)
|
c167f28d17
|
fix: resolve compilation errors in info.rs by adding imports and fixing type handling
|
2025-05-13 18:10:37 -03:00 |
|
Andrew Phillips (aider)
|
975acf2dc3
|
refactor: extract item display logic into show_item function
|
2025-05-13 18:08:19 -03:00 |
|
Andrew Phillips (aider)
|
9046d0b558
|
refactor: replace if let with match in mode_info handling
|
2025-05-13 18:04:58 -03:00 |
|
Andrew Phillips (aider)
|
5727c831dc
|
fix: resolve type mismatches by cloning Options and handling Result correctly in info.rs
|
2025-05-13 18:02:41 -03:00 |
|
Andrew Phillips (aider)
|
36a0eb56c1
|
fix: resolve type mismatches in info mode handling
|
2025-05-13 17:58:20 -03:00 |
|
Andrew Phillips (aider)
|
485b36ce02
|
feat: add digest type and value to info output
|
2025-05-13 17:55:48 -03:00 |
|
Andrew Phillips
|
cf279c42f1
|
style: add trailing commas in ColumnType match arms
|
2025-05-13 17:50:41 -03:00 |
|
Andrew Phillips
|
1aaf1e6221
|
feat: make digest_value optional and add digest display
|
2025-05-13 17:49:19 -03:00 |
|
Andrew Phillips (aider)
|
1d9ca1b9dd
|
fix: clone digest_type to avoid move error
|
2025-05-13 17:25:38 -03:00 |
|
Andrew Phillips (aider)
|
2e6bc0cc77
|
fix: add missing digest_type and digest_value to db::Item
|
2025-05-13 17:22:08 -03:00 |
|
Andrew Phillips (aider)
|
3e79b653b5
|
feat: add support for Item.digest_type and digest_value in database operations
|
2025-05-13 17:18:09 -03:00 |
|
Andrew Phillips
|
6a2476825b
|
feat: add digest fields and update compression default in items table
|
2025-05-13 17:17:59 -03:00 |
|
Andrew Phillips (aider)
|
0a33dcd90d
|
fix: use md5sum instead of bzip2 for MD5 digest
|
2025-05-13 17:02:48 -03:00 |
|
Andrew Phillips (aider)
|
928608ae51
|
feat: add Debug derive to DigestEngineProgram
|
2025-05-13 16:59:20 -03:00 |
|