Commit Graph

237 Commits

Author SHA1 Message Date
0cfeeb9134 test: add tests to catalog.persist function 2026-03-09 08:39:10 +01:00
827ac20e87 feat: add EntityState::Updated, change name from insert to upsert in catalog 2026-03-09 08:39:10 +01:00
c01cfaf027 test: add tests to catalog.persist function 2026-03-09 08:39:10 +01:00
fb8bfa301b test: add tests to catalog.delete function 2026-03-09 08:39:10 +01:00
193e78409f test: add tests for catalog.list_by_class_and_attribute function 2026-03-09 08:39:10 +01:00
d52da2d8ec test: add tests to catalog.list_by_class function 2026-03-09 08:39:10 +01:00
1079f404fb test: add tests to catalog.get function 2026-03-09 08:39:10 +01:00
3e24f2fb91 test: add tests to check catalog insert and insert_many functions 2026-03-09 08:39:10 +01:00
16f76653e4 feat: add support for i32 and u32 primitive types 2026-03-09 08:39:10 +01:00
d0b6cc2927 test: add tests implementations for catalog init 2026-03-09 08:39:10 +01:00
2fffebc2c1 test: add test for catalog new 2026-03-09 08:39:10 +01:00
8a9119e692 test: add Item struct to be used in test scenarios 2026-03-09 08:39:10 +01:00
6242404cfb test: add a placeholder test battery for each sqlite function 2026-03-09 08:39:10 +01:00
9f9f6bca62 test: add placeholders for catalog tests 2026-03-09 08:39:10 +01:00
5c26f01890 review: clean code from comment blocks and placeholders 2026-03-09 08:39:10 +01:00
718176edbd doc: clean code for documentation output 2026-03-09 08:39:10 +01:00
63ecb15824 doc: add doc comments to ctalog struct description 2026-03-09 08:39:10 +01:00
5ec071ce63 doc: add doc comments to EAV trait 2026-03-09 08:39:10 +01:00
784c171871 doc: add doc comments to FailedTo 2026-03-09 08:39:10 +01:00
4c964efd42 doc: add entity_state doc comments 2026-03-09 08:39:10 +01:00
0eb0422443 review: change visibility to attribute and value structs 2026-03-09 08:39:10 +01:00
9a8f1f550b chore: run cargo format 2026-03-09 08:39:10 +01:00
062642ccd5 doc: add doc comments to entity struct 2026-03-09 08:39:10 +01:00
b0d290407d review: make value_of internal and remove unused function 2026-03-09 08:39:10 +01:00
8fb5a2ce72 doc: add a simple example of catalog use 2026-03-09 08:39:10 +01:00
03243f3288 feat: add with_opt_attribute convenince function to handle options 2026-03-09 08:39:10 +01:00
5c4562afc2 doc: add doc comments for delete and improve doc comment for persist 2026-03-09 08:39:09 +01:00
8c0afe0c9c feat: add ToDelete state to entity and perform deletion while persisting 2026-03-09 08:39:09 +01:00
4c95b709c0 refactor: group sqlite-related errors under one enum 2026-03-09 08:39:09 +01:00
cac890aa06 feat: add error handling for load functions to catalog 2026-03-09 08:39:09 +01:00
5ec86bac7f feat: add error handling to catalog persist function 2026-03-09 08:39:09 +01:00
5a9b1a97ab refactor: call catalog.insert while looping during catalog.insert_many 2026-03-09 08:39:09 +01:00
21aaff25f4 feat: add error handling for database initialization 2026-03-09 08:39:09 +01:00
767f00ae36 feat: ensure entity and attributes are read in a single transaction 2026-03-09 08:39:09 +01:00
5230b8e5df test: rewrite intended use scenario 1 with some new features 2026-03-09 08:39:09 +01:00
ae96dc56e1 review: remove the possibility to insert raw entities into catalog 2026-03-09 08:39:09 +01:00
67402dde03 review: remove Default for Entity 2026-03-09 08:39:09 +01:00
06a8b52e20 review: avoid using class in entity construction relying on T and EAV trait 2026-03-09 08:39:09 +01:00
cad5539a44 review: avoid using class string relying on T and EAV trait 2026-03-09 08:39:09 +01:00
733ffc36aa doc: add doc comments to catalog implementation 2026-03-09 08:39:09 +01:00
cb22bf64e7 feat: return iterator from list functions 2026-03-09 08:39:09 +01:00
05085a0f7b feat: make ref_date optional 2026-03-09 08:39:09 +01:00
36bb9e3845 feat: add ref_date field to entity 2026-03-09 08:39:09 +01:00
cf3ab35144 fix: correct intended use for entity state 2026-03-09 08:39:09 +01:00
c4b7352b8c feat: add get_by_class_and_attribute function to catalog 2026-03-09 08:39:09 +01:00
ddd1957c44 feat: add unwrap_opt function to entity to unwrap optional values 2026-03-09 08:39:09 +01:00
1a890ea98a chore: clean code from stdout logging 2026-03-09 08:39:09 +01:00
97e54e7891 feat: add entity state to speed up catalog persist function 2026-03-09 08:39:09 +01:00
8cf8e36b2a refactor: use items.insert instead of insert to add entities after load 2026-03-09 08:39:09 +01:00
78fb2e6499 chore: run cargo format 2026-03-09 08:39:09 +01:00