Commit Graph

232 Commits

Author SHA1 Message Date
81bed07665 feat: handle comparisons =, >, <, >=, <= for condition real 2026-03-09 08:39:12 +01:00
bc9aee953c review: rewrite match statement for parameter building 2026-03-09 08:39:12 +01:00
95373731d2 feat: handle comparisons "ends with" and "contains" for text condition 2026-03-09 08:39:12 +01:00
ceecdd3912 feat: handle comparison "starts with" for text condition
- rewrite statement generation to handle errors
- align "exactly match" with case insensitiveness of starts with
2026-03-09 08:39:12 +01:00
b26e69b14d feat: handle comparison "is exactly" for text condition 2026-03-09 08:39:12 +01:00
9af3cb27c2 feat: add error handling during filter composition and new filter conditions for text matching 2026-03-09 08:39:12 +01:00
2e42afbb04 feat: handle comparisons =, >, <, >=, <= for unsigned int condition 2026-03-09 08:39:12 +01:00
01a6e2ce48 chore: run cargo format and delete empty lines in catalog.rs 2026-03-09 08:39:12 +01:00
45093a5672 feat: handle comparison "lesser or equal" for signed int contidion 2026-03-09 08:39:12 +01:00
3d6dfef254 feat: handle comparison "greater or equal" for signed int condition 2026-03-09 08:39:12 +01:00
3feb0d464e feat: handle comparison "lesser" for signed int condition 2026-03-09 08:39:12 +01:00
8e8e964e3f feat: handle comparison "greater" for signed int condition 2026-03-09 08:39:12 +01:00
377b232128 test: add test to catalog.load_by_filter function 2026-03-09 08:39:12 +01:00
423cadf821 review: remove useless redundant tests from sqlite_load_by_filter function 2026-03-09 08:39:12 +01:00
b43c705ad6 review: refactor inner join fragment creation using template and helper function 2026-03-09 08:39:12 +01:00
3ee7d97275 review: use INNER JOIN to create filter statement 2026-03-09 08:39:12 +01:00
9ac8cb1249 chore: run cargo format 2026-03-09 08:39:12 +01:00
c385dbf85f review: rewrite sqlite_build_params and remove useless tests 2026-03-09 08:39:11 +01:00
489492ab15 doc: add initial documentation for load_by_filter function in catalog 2026-03-09 08:39:11 +01:00
501ee9013a review: add review comments to sqlite_build_statement function 2026-03-09 08:39:11 +01:00
cca78b2b56 fix: check test assert with correct item 2026-03-09 08:39:11 +01:00
f2c7267b64 feat: add signed integer filter condition with equal comparison 2026-03-09 08:39:11 +01:00
5abdc4e133 feat: add placeholder implementation of comparison enum to allow different comparison operators 2026-03-09 08:39:11 +01:00
20a68aa018 feat: add load_by_filter to catalog with possibility to filter by bool attribute 2026-03-09 08:39:11 +01:00
c865c72c01 review: change trait requirements for EAV implementors 2026-03-09 08:39:11 +01:00
5b0aa07a07 feat: catalog state is changed after persist, in memory state reflects db 2026-03-09 08:39:11 +01:00
58e51f4f47 review: change trait req for entity unwrap* functions to TryFrom<Value> to handle errors 2026-03-09 08:39:11 +01:00
688f16d486 review: replace panic! with generic rusqlite error while mapping attributes 2026-03-09 08:39:11 +01:00
a5dcf7b54a test: add tests to sqlite_persist_catalog function 2026-03-09 08:39:11 +01:00
79fc4272b6 chore: delete test scenarios used during initial implementation 2026-03-09 08:39:11 +01:00
aa1ff02d6d chore: update comments using upsert instead of insert 2026-03-09 08:39:11 +01:00
6e517e5938 fix: change expected entity status in test after changing from insert to upsert 2026-03-09 08:39:11 +01:00
02178c018c test: add tests to sqlite_map_row_to_entity function 2026-03-09 08:39:11 +01:00
f9d2f1c4c0 test: add tests to sqlite_map_row_to_attribute function 2026-03-09 08:39:11 +01:00
3095a78c89 test: add tests to sqlite_load_by_id function 2026-03-09 08:39:11 +01:00
2bb3891b77 test: add tests to sqlite_load_by_class function 2026-03-09 08:39:11 +01:00
440c46e03b test: add tests to sqlite_load_attributes function 2026-03-09 08:39:11 +01:00
06b0253e3e chore: run cargo format 2026-03-09 08:39:11 +01:00
6f39925fe3 test: add tests to sqlite_init_db function 2026-03-09 08:39:11 +01:00
e4ddeaf400 test: add integration tests to catalog 2026-03-09 08:39:11 +01:00
b34532832e test: add tests to catalog.load_by_class function 2026-03-09 08:39:11 +01:00
270042a7e2 fix: map error coming from sqlite module to correct FailedTo function error 2026-03-09 08:39:11 +01:00
9fff7b7460 test: add tests to catalog.load_by_id function 2026-03-09 08:39:11 +01:00
335feade19 test: add tests to catalog.persist function 2026-03-09 08:39:11 +01:00
358a30f303 fix: handle EntityState::Updated state while persisting catalog 2026-03-09 08:39:10 +01:00
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