Commit Graph

228 Commits

Author SHA1 Message Date
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
7398de4559 fix: set proper mutability level for with_items call 2026-03-09 08:39:13 +01:00
2fa3e423e5 chore: add warning for missing documentation 2026-03-09 08:39:13 +01:00
f7ab450e2c review: make entity fields private; expose id and subclass 2026-03-09 08:39:13 +01:00
6ef36e2068 doc: update documentation to reach higher coverage 2026-03-09 08:39:13 +01:00
a38b96a667 test: add test for thread safety; remove mut for upsert and persist 2026-03-09 08:39:13 +01:00
6f6df06be2 wip: add test for thread safety 2026-03-09 08:39:13 +01:00
e1178f7126 chore: restore examples after thread safety feature 2026-03-09 08:39:13 +01:00
645e7560b3 chore: restore lib example after thread safety feature 2026-03-09 08:39:13 +01:00
bc4ac445c9 feat: set catalog as thread safe
wip: add a thread safe way to access items; change upsert

wip: change catalog.delete to be thread safe

wip: change catalog.load_by_* to be thread safe

wip: add a thread safe way to access items in readonly mode; change
catalog.get

wip: change catalog.persist to be thread safe

wip: disable examples temprarily

wip: remove catalog_new.rs file

wip: ignore result of iteration

wip: disable lib example

wip: enable catalog.delete tests

wip: enable catalog.get tests

wip enalbe catalog.init tests

wip: enable catalog.insert_many tests

wip: enable catalog.load_by_class tests

wip: enable catalog.load_by_id tests

wip: add len() and is_empty() convenience thread safe method to catalog

wip: use convenience methods for len and is_empty checks

wip: enable catalog.load_by_id and catalog.new tests

wip: enable catalog.upsert tests

wip: enable catalog.persist test; add catalog.contains_key

wip: enable catalog.load_by_filter tests

wip: enable sqlite_* tests

wip: enable list_by_class with tests

wip: enable list_by_class_and_subclass with tests

wip: enable integration tests

wip: switch iter to into_iter for tests
2026-03-09 08:39:13 +01:00
a2ad264b39 chore: extract tests from sqlite_* files into their own module 2026-03-09 08:39:13 +01:00
f5f0f189fa chore: extract tests from catalog.rs into their own module implementation 2026-03-09 08:39:13 +01:00
dedfe7a5d2 chore: move Item outside of catalog test mod 2026-03-09 08:39:12 +01:00
d4ecd1a6cc chore: extract catalog function into their own impl file
also get rid of
- get_by_class_and_attribute
- list_by_class_and_attribute
2026-03-09 08:39:12 +01:00
e362188438 chore: remove useless dependencies used only during early development 2026-03-09 08:39:12 +01:00
0493a2ef66 doc: add an example to showcase how to work with class and subclass 2026-03-09 08:39:12 +01:00
c3594b6a3f feat: add entity.subclass index to db schema 2026-03-09 08:39:12 +01:00
314c9ce323 feat: add class and subclass to filter struct 2026-03-09 08:39:12 +01:00
276d6bd0bb test: add tests for catalog.list_by_class_and_subclass function 2026-03-09 08:39:12 +01:00
baa3fc9147 feat: add subclass to entity struct 2026-03-09 08:39:12 +01:00
c41e806817 doc: improve documentation of publicly available functions, structs and enums 2026-03-09 08:39:12 +01:00
1b10d350cc doc: add crate level documentation with working example 2026-03-09 08:39:12 +01:00
60f3e0023e doc: add filter example with multiple conditions 2026-03-09 08:39:12 +01:00
9ee86c9cde fix: set unique names for attribute table in case of multiple filter conditions 2026-03-09 08:39:12 +01:00
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