Commit Graph

88 Commits

Author SHA1 Message Date
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
502fc8b7d0 refactor: remove ToEAV trait in favor of Into<Entity> 2026-03-09 08:39:08 +01:00
70c3b9108e refactor: remove FromEAV trait in favor of From<Entity> 2026-03-09 08:39:08 +01:00
af860bdb22 refactor: remove trait to_value in favor of Into<Value> 2026-03-09 08:39:08 +01:00
90fa4119dd feat: add catalog persistance 2026-03-09 08:39:08 +01:00
b063ecaf9c feat: add sqlite db initialization from catalog 2026-03-09 08:39:08 +01:00
3c31009db2 test: add rusty budget scenario 2026-03-09 08:39:08 +01:00
c275c60b34 feat: add get function to catalog 2026-03-09 08:39:08 +01:00
804e9b8536 feat: add insert_many utility functions to catalog 2026-03-09 08:39:08 +01:00
d752ed0140 feat: remove useless entity flags 2026-03-09 08:39:08 +01:00
b7790e2f47 feat: replace persist with insert (in memory) 2026-03-09 08:39:08 +01:00
5d06946a4c feat: add mock implementation for entity catalog 2026-03-09 08:39:08 +01:00
4ff1a85647 wip: add loaded and persisted flags with function placeholders 2026-03-09 08:39:08 +01:00
7d348052d5 feat: add super trait EAV 2026-03-09 08:39:08 +01:00
3a8c000665 feat: add utility functions with_id and with_class for entity construction 2026-03-09 08:39:08 +01:00
342c971ce3 feat: add unwrap utility function to entity 2026-03-09 08:39:08 +01:00
3767e6f73f test: demo attribute value setting and entity reletions 2026-03-09 08:39:08 +01:00
c6ab35584e test: add intended use tests to try/demo the library 2026-03-09 08:39:08 +01:00
357296edd6 feat: add to_value implementation for &str 2026-03-09 08:39:08 +01:00
e8cb7d8e53 feat: add id field to entity, implement ToValue for entity 2026-03-09 08:39:08 +01:00
6bc97e36c1 test: add test for entity new and with_attribute constructor functions 2026-03-09 08:39:08 +01:00
f32d828b2a feat: add trait ToValue; implement it for base types 2026-03-09 08:39:08 +01:00
01568e87c0 feat: add utility function to set and unset an attribute from an entity 2026-03-09 08:39:08 +01:00
55e1b5d9cf feat: add utility function to read an attribute value from an entity 2026-03-09 08:39:08 +01:00
e274ccafec feat: add contructor utility functions to entity and attribute 2026-03-09 08:39:08 +01:00
1786c9104f feat: add traits to transform self from and to eav 2026-03-09 08:39:07 +01:00
58641d7197 feat: add basic structures for EAV modeling (entity, attribute, value) 2026-03-09 08:39:07 +01:00
7a301eb5d7 chore: initialize workspace and main project with standard structure 2026-03-09 08:39:07 +01:00