Commit Graph

36 Commits

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