Commit Graph

221 Commits

Author SHA1 Message Date
9ff09c402f chore: add explicit listing to attribute columns output in query 2026-03-09 08:39:15 +01:00
4075c2e58b feat: implement to_sql trait for value enum 2026-03-09 08:39:14 +01:00
51e18d66a7 fix: update rust doc for unsigned 32 value variant 2026-03-09 08:39:14 +01:00
e30dcbb9c9 feat: add a new index for entity_id in table attribute 2026-03-09 08:39:14 +01:00
8d7b3592de chore: add github repository url in crate Cargo.toml 2026-03-09 08:39:14 +01:00
338521db43 chore: add description, license and keywords to crate Cargo.toml 2026-03-09 08:39:14 +01:00
313248b1a5 fix: change mutability to ref while loading by id 2026-03-09 08:39:14 +01:00
5db868b192 fix: change mutability to ref while loading with filter 2026-03-09 08:39:14 +01:00
5215a3a724 fix: change mutability to ref while loading and inserting many 2026-03-09 08:39:14 +01:00
edc9d64744 fix: change mutability to ref while deleting items from catalog 2026-03-09 08:39:14 +01:00
7718daddda chore: rename key parameter to id while checking for existence 2026-03-09 08:39:14 +01:00
46ab14738d fix: update condition types after u64 deprecation from rusqlite update 2026-03-09 08:39:14 +01:00
33e40fb634 fix: avoid init and writig db file during automatic tests 2026-03-09 08:39:14 +01:00
9a10d75304 chore: clean useless conversion after ditching u64 2026-03-09 08:39:14 +01:00
0f79f4adfb chore: sort alphabetically use directives in example 2026-03-09 08:39:14 +01:00
1f9228f31e chore: update method name from load_by_class to load 2026-03-09 08:39:14 +01:00
b59cb0fb56 chore: upgrade rusqlite dependency to 0.38.0 2026-03-09 08:39:14 +01:00
3b3e495254 chore: rename list_by_class to list 2026-03-09 08:39:14 +01:00
7847394d13 chore: box structs into modules (catalog, eav, filter) 2026-03-09 08:39:14 +01:00
4010149ea6 doc: document method catalog.ensure_init 2026-03-09 08:39:14 +01:00
98e50faa4e feat: add method ensure_init runnable at will without overhead 2026-03-09 08:39:14 +01:00
e316ec83a3 chore: tidy redeclarations in lib.rs 2026-03-09 08:39:14 +01:00
4428cd094f chore: rename load_by_class_and_subclass to load_by_subclass 2026-03-09 08:39:14 +01:00
cb0f0cfa31 chore: rename load_by_class to load 2026-03-09 08:39:14 +01:00
f86d53e16f chore: delete test database wrongly pushed 2026-03-09 08:39:14 +01:00
da74060d51 feat: return a vector of boxed error from catalog.for_each_mut
execution is not interrupted and user can raise any error implementing
Error trait
2026-03-09 08:39:14 +01:00
222864389c chore: add Clone as Trait requirement for EAV 2026-03-09 08:39:14 +01:00
91dc75b07b test: add base test for catalog.for_each_mut 2026-03-09 08:39:14 +01:00
e9b136341b doc: add documentation for catalog.for_each and catalog.for_each_mut 2026-03-09 08:39:14 +01:00
34808ccf74 feat: allow predicate to generate an error and return it boxed 2026-03-09 08:39:14 +01:00
bbc6105452 test: add tests to catalog.for_each, set FnMut requirement for predicate 2026-03-09 08:39:14 +01:00
f8b8d4c9e3 chore: correct wrong category spelling 2026-03-09 08:39:14 +01:00
cd0679c20c feat: add catalog.for_each_mut to apply changes to all items iteratively 2026-03-09 08:39:13 +01:00
23a6ccf8fc feat: add catalog.for_each to inspect all items iteratively 2026-03-09 08:39:13 +01:00
20078034c5 feat: add PartialEq trait requirement to EAV 2026-03-09 08:39:13 +01:00
2ecee20145 feat: add catalog.get_by in order to get items given a predicate 2026-03-09 08:39:13 +01:00
2aa1e7cb46 doc: update documentation of catalog.persist 2026-03-09 08:39:13 +01:00
44f548562b doc: update documentation of catalog.upsert 2026-03-09 08:39:13 +01:00
8a23cfc34d doc: update documentation of catalog.load_by_class 2026-03-09 08:39:13 +01:00
7a250201b3 doc: update ducomentation of catalog.load_by_filter 2026-03-09 08:39:13 +01:00
5a15a018ab doc: update documentation of catalog.load_by_id 2026-03-09 08:39:13 +01:00
25a39ce54c doc: update documentation of catalog.insert_many 2026-03-09 08:39:13 +01:00
6a8351b4d6 doc: update documentation of catalog.init 2026-03-09 08:39:13 +01:00
dcffe956fd doc: update documentation of catalog.get 2026-03-09 08:39:13 +01:00
14469c7229 chore: add a space for convenient jumping 2026-03-09 08:39:13 +01:00
00d8ebdb38 test: add two more field to struct Item to test i32 and u32 values 2026-03-09 08:39:13 +01:00
cfcacefe9a test: add properties to Item struct to improve test code coverage for Entity 2026-03-09 08:39:13 +01:00
7ae351415e chore: add code_coverage command to justfile 2026-03-09 08:39:13 +01:00
54d4d7511a chore: run cargo update to latest minor versions 2026-03-09 08:39:13 +01:00
7446f0db1c fix: call proper method to get entity id 2026-03-09 08:39:13 +01:00