Commit Graph

128 Commits

Author SHA1 Message Date
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
02eddc19e3 doc: update readme with actual example code 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
8f189f0640 doc: update instruction in README contributions section 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
4170a6b469 chore: fix wrong -u flag to git push command in .justfile 2026-03-09 08:39:09 +01:00
31897711b9 doc: add more information to README.md 2026-03-09 08:39:09 +01:00
97ec240490 chore: rename justfile to .justfile 2026-03-09 08:39:09 +01:00
76a13005a7 chore: update justfile adding github.com to synced remotes 2026-03-09 08:39:09 +01:00
ed55836f6e chore: add justfile to handle codeberg.org repo sync 2026-03-09 08:39:09 +01:00
9adea85936 doc: add workspace and project structure information 2026-03-09 08:39:09 +01:00
146c7422bc doc: add minimal info and structure to readme.md 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
e0331921ee feat: add entity_class and attribute_id indexes to db structure 2026-03-09 08:39:09 +01:00
835feb7450 fix: force bool value to 0 or 1 into db 2026-03-09 08:39:09 +01:00
22d58c4c5f feat: add unwrap_or to entity, rewrite unwrap 2026-03-09 08:39:09 +01:00
f91b755619 feat: add function to list entities by class 2026-03-09 08:39:08 +01:00
fecfc46751 feat: add load_by_class function to catalog 2026-03-09 08:39:08 +01:00
ab491130a7 refactor: extract load_attributes from load_by_id 2026-03-09 08:39:08 +01:00
172cffaad2 feat: add has_attribute function to entity 2026-03-09 08:39:08 +01:00
8852a9569e feat: add load_by_id function to catalog 2026-03-09 08:39:08 +01:00
ed40d87e2f fix: remove useless initialization during catalog construction 2026-03-09 08:39:08 +01:00
6f77463038 refactor: split persist function into sub functions for readability 2026-03-09 08:39:08 +01:00