Commit Graph

220 Commits

Author SHA1 Message Date
davidemazzocchi 58e51f4f47 review: change trait req for entity unwrap* functions to TryFrom<Value> to handle errors 2026-03-09 08:39:11 +01:00
davidemazzocchi 05dc429d86 doc: add a disclaimer on breaking changes and bugs for early adopters 2026-03-09 08:39:11 +01:00
davidemazzocchi 688f16d486 review: replace panic! with generic rusqlite error while mapping attributes 2026-03-09 08:39:11 +01:00
davidemazzocchi a5dcf7b54a test: add tests to sqlite_persist_catalog function 2026-03-09 08:39:11 +01:00
davidemazzocchi 79fc4272b6 chore: delete test scenarios used during initial implementation 2026-03-09 08:39:11 +01:00
davidemazzocchi aa1ff02d6d chore: update comments using upsert instead of insert 2026-03-09 08:39:11 +01:00
davidemazzocchi 6e517e5938 fix: change expected entity status in test after changing from insert to upsert 2026-03-09 08:39:11 +01:00
davidemazzocchi 02178c018c test: add tests to sqlite_map_row_to_entity function 2026-03-09 08:39:11 +01:00
davidemazzocchi f9d2f1c4c0 test: add tests to sqlite_map_row_to_attribute function 2026-03-09 08:39:11 +01:00
davidemazzocchi 3095a78c89 test: add tests to sqlite_load_by_id function 2026-03-09 08:39:11 +01:00
davidemazzocchi 2bb3891b77 test: add tests to sqlite_load_by_class function 2026-03-09 08:39:11 +01:00
davidemazzocchi 440c46e03b test: add tests to sqlite_load_attributes function 2026-03-09 08:39:11 +01:00
davidemazzocchi 06b0253e3e chore: run cargo format 2026-03-09 08:39:11 +01:00
davidemazzocchi 6f39925fe3 test: add tests to sqlite_init_db function 2026-03-09 08:39:11 +01:00
davidemazzocchi 7509bd2bdf doc: update README with the new upsert function for catalog 2026-03-09 08:39:11 +01:00
davidemazzocchi e4ddeaf400 test: add integration tests to catalog 2026-03-09 08:39:11 +01:00
davidemazzocchi b34532832e test: add tests to catalog.load_by_class function 2026-03-09 08:39:11 +01:00
davidemazzocchi 270042a7e2 fix: map error coming from sqlite module to correct FailedTo function error 2026-03-09 08:39:11 +01:00
davidemazzocchi 9fff7b7460 test: add tests to catalog.load_by_id function 2026-03-09 08:39:11 +01:00
davidemazzocchi 335feade19 test: add tests to catalog.persist function 2026-03-09 08:39:11 +01:00
davidemazzocchi 358a30f303 fix: handle EntityState::Updated state while persisting catalog 2026-03-09 08:39:10 +01:00
davidemazzocchi 0cfeeb9134 test: add tests to catalog.persist function 2026-03-09 08:39:10 +01:00
davidemazzocchi 827ac20e87 feat: add EntityState::Updated, change name from insert to upsert in catalog 2026-03-09 08:39:10 +01:00
davidemazzocchi c01cfaf027 test: add tests to catalog.persist function 2026-03-09 08:39:10 +01:00
davidemazzocchi fb8bfa301b test: add tests to catalog.delete function 2026-03-09 08:39:10 +01:00
davidemazzocchi 193e78409f test: add tests for catalog.list_by_class_and_attribute function 2026-03-09 08:39:10 +01:00
davidemazzocchi d52da2d8ec test: add tests to catalog.list_by_class function 2026-03-09 08:39:10 +01:00
davidemazzocchi 1079f404fb test: add tests to catalog.get function 2026-03-09 08:39:10 +01:00
davidemazzocchi c6742fcddd chore: add a command to extract devlog from commit messages 2026-03-09 08:39:10 +01:00
davidemazzocchi 3e24f2fb91 test: add tests to check catalog insert and insert_many functions 2026-03-09 08:39:10 +01:00
davidemazzocchi 16f76653e4 feat: add support for i32 and u32 primitive types 2026-03-09 08:39:10 +01:00
davidemazzocchi d0b6cc2927 test: add tests implementations for catalog init 2026-03-09 08:39:10 +01:00
davidemazzocchi 2fffebc2c1 test: add test for catalog new 2026-03-09 08:39:10 +01:00
davidemazzocchi 8a9119e692 test: add Item struct to be used in test scenarios 2026-03-09 08:39:10 +01:00
davidemazzocchi 408022d479 chore: add a new just command to check for semver breaking changes 2026-03-09 08:39:10 +01:00
davidemazzocchi 6242404cfb test: add a placeholder test battery for each sqlite function 2026-03-09 08:39:10 +01:00
davidemazzocchi 9f9f6bca62 test: add placeholders for catalog tests 2026-03-09 08:39:10 +01:00
davidemazzocchi 5c26f01890 review: clean code from comment blocks and placeholders 2026-03-09 08:39:10 +01:00
davidemazzocchi 718176edbd doc: clean code for documentation output 2026-03-09 08:39:10 +01:00
davidemazzocchi 63ecb15824 doc: add doc comments to ctalog struct description 2026-03-09 08:39:10 +01:00
davidemazzocchi 5ec071ce63 doc: add doc comments to EAV trait 2026-03-09 08:39:10 +01:00
davidemazzocchi 784c171871 doc: add doc comments to FailedTo 2026-03-09 08:39:10 +01:00
davidemazzocchi 4c964efd42 doc: add entity_state doc comments 2026-03-09 08:39:10 +01:00
davidemazzocchi 0eb0422443 review: change visibility to attribute and value structs 2026-03-09 08:39:10 +01:00
davidemazzocchi 9a8f1f550b chore: run cargo format 2026-03-09 08:39:10 +01:00
davidemazzocchi 062642ccd5 doc: add doc comments to entity struct 2026-03-09 08:39:10 +01:00
davidemazzocchi b0d290407d review: make value_of internal and remove unused function 2026-03-09 08:39:10 +01:00
davidemazzocchi 02eddc19e3 doc: update readme with actual example code 2026-03-09 08:39:10 +01:00
davidemazzocchi 8fb5a2ce72 doc: add a simple example of catalog use 2026-03-09 08:39:10 +01:00
davidemazzocchi 03243f3288 feat: add with_opt_attribute convenince function to handle options 2026-03-09 08:39:10 +01:00