You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several improvements across the codebase:
- Query/Prepared-statement cache: add atomic counters and fast-path flags (hits, misses, entries, size_bytes, evictions, invalidations), track approximate serialized size per entry, update eviction/invalidation accounting, optimize common read paths, and expose snapshot/reset semantics. Add tests covering replacements, reset semantics and clearing behavior.
- Benchmarks: add end-to-end query-cache and uncached-concurrency benchmarks (BenchCacheUser model + new benchmark functions), register them in the criterion group, and minor bench formatting fixes.
- Database API: add convenience async helpers (raw_with_params, execute_with_params, raw_json_with_params) and internal __* variants that operate on a given Database instance to run raw SQL with typed params.
- Error context: box ErrorContext in Error variants, add rendered conditions and operator_chain fields and helper builders, and improve formatting and tests.
- Docs/manifest: clarify that attachments/translations/fulltext are compile-time feature gates (do not add deps) in Cargo.toml and README; add a sqlite CI smoke test to Cargo.toml.
- Misc: small fixes and formatting in attachments, fulltext query formatting and parameter pushes, CRUD benchmark formatting, and move config tests to an external testing module.
These changes improve cache observability, concurrency behavior in benchmarks, and convenience for raw SQL usage while keeping feature flags and docs clearer.
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -192,15 +192,15 @@ tideorm = { version = "0.8.0", features = ["postgres", "fulltext"] }
192
192
|`sqlite`| SQLite support |
193
193
|`runtime-tokio`| Tokio runtime (default) |
194
194
|`runtime-async-std`| async-std runtime |
195
-
|`attachments`|Enables the attachments API and attachment-specific benchmarks/tests |
196
-
|`translations`|Enables the translations API and translation-specific benchmarks/tests |
197
-
|`fulltext`|Enables the full-text search API and fulltext-specific benchmarks/tests |
195
+
|`attachments`|Compile-time-only feature gate for the attachments API and attachment-specific benchmarks/tests; adds no extra dependencies|
196
+
|`translations`|Compile-time-only feature gate for the translations API and translation-specific benchmarks/tests; adds no extra dependencies|
197
+
|`fulltext`|Compile-time-only feature gate for the full-text search API and fulltext-specific benchmarks/tests; adds no extra dependencies|
198
198
199
-
Attachments are opt-in. Enable the `attachments` feature when you want to use `tideorm::attachments`, `HasAttachments`, or attachment URL generation helpers.
199
+
Attachments are opt-in. Enable the `attachments` feature when you want to use `tideorm::attachments`, `HasAttachments`, or attachment URL generation helpers. This is a compile-time API gate only; it does not pull in additional crates.
200
200
201
-
Translations are opt-in. Enable the `translations` feature when you want to use `tideorm::translations`, `HasTranslations`, or `ApplyTranslations`.
201
+
Translations are opt-in. Enable the `translations` feature when you want to use `tideorm::translations`, `HasTranslations`, or `ApplyTranslations`. This is a compile-time API gate only; it does not pull in additional crates.
202
202
203
-
Full-text search is opt-in. Enable the `fulltext` feature when you want to use `tideorm::fulltext`, `FullTextSearch`, or the highlighting helpers.
203
+
Full-text search is opt-in. Enable the `fulltext` feature when you want to use `tideorm::fulltext`, `FullTextSearch`, or the highlighting helpers. This is a compile-time API gate only; it does not pull in additional crates.
204
204
205
205
## Relation Types
206
206
@@ -241,7 +241,7 @@ For runnable applications and broader demos, see **[tideorm-examples](https://gi
241
241
242
242
## Testing
243
243
244
-
TideORM ships with unit, integration, and feature-specific test coverage. The repository CI runs `cargo check` plus `cargo test --lib` across PostgreSQL, MySQL, and SQLite feature sets.
244
+
TideORM ships with unit, integration, and feature-specific test coverage. The repository CI runs cargo fmt, cargo clippy, cargo check, cargo test --lib across PostgreSQL, MySQL, and SQLite feature sets, plus a SQLite end-to-end smoke test.
0 commit comments