Commit Graph

232 Commits

Author SHA1 Message Date
c3d4e63d73 chore: scaffold Error implementation for FailedTo 2026-03-16 08:14:15 +01:00
d5497906be review: change test function name to make it clearer and coherent 2026-03-09 08:39:15 +01:00
b058aac5da review: delete unused read from source while mapping attributes 2026-03-09 08:39:15 +01:00
150c2263d2 fix: resolve sql injection while building dynamic query for filters 2026-03-09 08:39:15 +01:00
32cf95a837 chore: add a TODO reminder for possible SQL injection! 2026-03-09 08:39:15 +01:00
b3ee2da12c chore: run cargo format on the code base 2026-03-09 08:39:15 +01:00
de7849dfde chore: remove small inefficiency from comparison statement 2026-03-09 08:39:15 +01:00
1adf4f0f2d chore: update documentation of catalog.for_each method 2026-03-09 08:39:15 +01:00
98bc282c32 fix: make catalog.delete coherent with other methods propagating errors 2026-03-09 08:39:15 +01:00
70ff843522 chore: fix example by deleting the useless map from list 2026-03-09 08:39:15 +01:00
4b27fa3700 chore: commit cargo.lock after verion bump 2026-03-09 08:39:15 +01:00
a641599476 chore: bump version to 0.10.0 2026-03-09 08:39:15 +01:00
915f9d320d doc: update documentation of catalog.list_by_subclass method 2026-03-09 08:39:15 +01:00
181e310ebd feat: simplify return type of catalog.list_by_subclass method 2026-03-09 08:39:15 +01:00
dcfa4dee4b doc: update documentation of catalog.list method 2026-03-09 08:39:15 +01:00
68c6ca4e9f feat: simplify return type of catalog.list method 2026-03-09 08:39:15 +01:00
cdf5ead07d chore: bump minor version to 0.9.0 2026-03-09 08:39:15 +01:00
dd259fcbe7 chore: rewrite mapping closures for sqlite errors 2026-03-09 08:39:15 +01:00
feecaea417 feat: encapsulate rusqlite::Error into sqlite::FailedTo (PrepareStatement) 2026-03-09 08:39:15 +01:00
09786f4d77 feat: encapsulate rusqlite::Error into sqlite::FailedTo (OpenConnection) 2026-03-09 08:39:15 +01:00
b48ae74a47 feat: encapsulate rusqlite::Error into sqlite::FailedTo (ExecuteStatement) 2026-03-09 08:39:15 +01:00
302ede497f feat: encapsulate rusqlite::Error into sqlite::FailedTo (ExecuteQuery) 2026-03-09 08:39:15 +01:00
b17d9fc988 feat: encapsulate rusqlite::Error into sqlite::FailedTo (ExecuteBatch) 2026-03-09 08:39:15 +01:00
dfb168b031 feat: encapsulate rusqlite::Error into sqlite::FailedTo enum (CommitTransaction) 2026-03-09 08:39:15 +01:00
0467ef6a75 feat: encapsulate rusqlite::Error into sqlite::FailedTo enum (begin transaction) 2026-03-09 08:39:15 +01:00
4cca2f1126 feat: make IsExactly equality more strict and case sensitive 2026-03-09 08:39:15 +01:00
ed936be08c chore: make entity column names explicity during query in load by id 2026-03-09 08:39:15 +01:00
558be49adb chore: make entity column names explicity during query in load by class 2026-03-09 08:39:15 +01:00
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