Commit Graph

255 Commits

Author SHA1 Message Date
davidemazzocchi e98f6b7edf chore: avoid to panic in case of an entity attribute is not found 2026-03-16 10:09:24 +01:00
davidemazzocchi 66e7bc22cf chore: add source() implementation to internal sqlite::FailedTo error 2026-03-16 09:26:07 +01:00
davidemazzocchi 35f83c376f chore: lint code with cargo format 2026-03-16 08:23:22 +01:00
davidemazzocchi 3f3a2df072 feat: add Display implementaion for public and internal FailedTo 2026-03-16 08:21:55 +01:00
davidemazzocchi c3d4e63d73 chore: scaffold Error implementation for FailedTo 2026-03-16 08:14:15 +01:00
davidemazzocchi 62582ee055 chore: update justfile after repo ownership change 2026-03-09 09:50:09 +01:00
davidemazzocchi d5497906be review: change test function name to make it clearer and coherent 2026-03-09 08:39:15 +01:00
davidemazzocchi b058aac5da review: delete unused read from source while mapping attributes 2026-03-09 08:39:15 +01:00
davidemazzocchi 150c2263d2 fix: resolve sql injection while building dynamic query for filters 2026-03-09 08:39:15 +01:00
davidemazzocchi 32cf95a837 chore: add a TODO reminder for possible SQL injection! 2026-03-09 08:39:15 +01:00
davidemazzocchi b3ee2da12c chore: run cargo format on the code base 2026-03-09 08:39:15 +01:00
davidemazzocchi de7849dfde chore: remove small inefficiency from comparison statement 2026-03-09 08:39:15 +01:00
davidemazzocchi 1adf4f0f2d chore: update documentation of catalog.for_each method 2026-03-09 08:39:15 +01:00
davidemazzocchi 98bc282c32 fix: make catalog.delete coherent with other methods propagating errors 2026-03-09 08:39:15 +01:00
davidemazzocchi 70ff843522 chore: fix example by deleting the useless map from list 2026-03-09 08:39:15 +01:00
davidemazzocchi 4b27fa3700 chore: commit cargo.lock after verion bump 2026-03-09 08:39:15 +01:00
davidemazzocchi 469de1f01c chore: add push force to .justfile 2026-03-09 08:39:15 +01:00
davidemazzocchi a641599476 chore: bump version to 0.10.0 2026-03-09 08:39:15 +01:00
davidemazzocchi 915f9d320d doc: update documentation of catalog.list_by_subclass method 2026-03-09 08:39:15 +01:00
davidemazzocchi 181e310ebd feat: simplify return type of catalog.list_by_subclass method 2026-03-09 08:39:15 +01:00
davidemazzocchi dcfa4dee4b doc: update documentation of catalog.list method 2026-03-09 08:39:15 +01:00
davidemazzocchi 68c6ca4e9f feat: simplify return type of catalog.list method 2026-03-09 08:39:15 +01:00
davidemazzocchi cdf5ead07d chore: bump minor version to 0.9.0 2026-03-09 08:39:15 +01:00
davidemazzocchi dd259fcbe7 chore: rewrite mapping closures for sqlite errors 2026-03-09 08:39:15 +01:00
davidemazzocchi feecaea417 feat: encapsulate rusqlite::Error into sqlite::FailedTo (PrepareStatement) 2026-03-09 08:39:15 +01:00
davidemazzocchi 09786f4d77 feat: encapsulate rusqlite::Error into sqlite::FailedTo (OpenConnection) 2026-03-09 08:39:15 +01:00
davidemazzocchi b48ae74a47 feat: encapsulate rusqlite::Error into sqlite::FailedTo (ExecuteStatement) 2026-03-09 08:39:15 +01:00
davidemazzocchi 302ede497f feat: encapsulate rusqlite::Error into sqlite::FailedTo (ExecuteQuery) 2026-03-09 08:39:15 +01:00
davidemazzocchi b17d9fc988 feat: encapsulate rusqlite::Error into sqlite::FailedTo (ExecuteBatch) 2026-03-09 08:39:15 +01:00
davidemazzocchi dfb168b031 feat: encapsulate rusqlite::Error into sqlite::FailedTo enum (CommitTransaction) 2026-03-09 08:39:15 +01:00
davidemazzocchi 0467ef6a75 feat: encapsulate rusqlite::Error into sqlite::FailedTo enum (begin transaction) 2026-03-09 08:39:15 +01:00
davidemazzocchi 4cca2f1126 feat: make IsExactly equality more strict and case sensitive 2026-03-09 08:39:15 +01:00
davidemazzocchi ed936be08c chore: make entity column names explicity during query in load by id 2026-03-09 08:39:15 +01:00
davidemazzocchi 558be49adb chore: make entity column names explicity during query in load by class 2026-03-09 08:39:15 +01:00
davidemazzocchi 9ff09c402f chore: add explicit listing to attribute columns output in query 2026-03-09 08:39:15 +01:00
davidemazzocchi 4075c2e58b feat: implement to_sql trait for value enum 2026-03-09 08:39:14 +01:00
davidemazzocchi 51e18d66a7 fix: update rust doc for unsigned 32 value variant 2026-03-09 08:39:14 +01:00
davidemazzocchi e30dcbb9c9 feat: add a new index for entity_id in table attribute 2026-03-09 08:39:14 +01:00
davidemazzocchi 8d7b3592de chore: add github repository url in crate Cargo.toml 2026-03-09 08:39:14 +01:00
davidemazzocchi 338521db43 chore: add description, license and keywords to crate Cargo.toml 2026-03-09 08:39:14 +01:00
davidemazzocchi 313248b1a5 fix: change mutability to ref while loading by id 2026-03-09 08:39:14 +01:00
davidemazzocchi 5db868b192 fix: change mutability to ref while loading with filter 2026-03-09 08:39:14 +01:00
davidemazzocchi 5215a3a724 fix: change mutability to ref while loading and inserting many 2026-03-09 08:39:14 +01:00
davidemazzocchi edc9d64744 fix: change mutability to ref while deleting items from catalog 2026-03-09 08:39:14 +01:00
davidemazzocchi 7718daddda chore: rename key parameter to id while checking for existence 2026-03-09 08:39:14 +01:00
davidemazzocchi 46ab14738d fix: update condition types after u64 deprecation from rusqlite update 2026-03-09 08:39:14 +01:00
davidemazzocchi 33e40fb634 fix: avoid init and writig db file during automatic tests 2026-03-09 08:39:14 +01:00
davidemazzocchi 9a10d75304 chore: clean useless conversion after ditching u64 2026-03-09 08:39:14 +01:00
davidemazzocchi 0f79f4adfb chore: sort alphabetically use directives in example 2026-03-09 08:39:14 +01:00
davidemazzocchi 1f9228f31e chore: update method name from load_by_class to load 2026-03-09 08:39:14 +01:00