chore: Bump to 0.5.0 - #38
Merged
Merged
Conversation
chmodas
force-pushed
the
update-deps
branch
2 times, most recently
from
August 9, 2026 09:41
30adf83 to
ed190a9
Compare
Upgrades to sqlx 0.9, which raises the minimum Rust version to 1.94. sqlx 0.9 dropped the `'q` lifetime from statements and arguments. That changed the signatures of `prepare`, `prepare_with` and `describe`, and made `Execute::sql` consume the query rather than borrow it. The wrapper needs the query text for `db.query.text` and still has to pass the query on to the inner executor, which a consuming `sql` rules out, so queries are now taken apart and reassembled first. See `src/rebuilt_query.rs`. `sqlx-core` and the per-backend driver crates become direct dependencies so their `offline` feature can be enabled. Without it `Executor::describe` is absent from the trait; with it, implementing it is mandatory.
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #38 +/- ##
==========================================
- Coverage 99.96% 99.84% -0.12%
==========================================
Files 13 14 +1
Lines 2555 2663 +108
==========================================
+ Hits 2554 2659 +105
- Misses 1 4 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrades to sqlx 0.9, which raises the minimum Rust version to 1.94.
sqlx 0.9 dropped the
'qlifetime from statements and arguments. That changed the signatures ofprepare,prepare_withanddescribe, and madeExecute::sqlconsume the query rather than borrow it. The wrapper needs the query text fordb.query.textand still has to pass the query on to the inner executor, which a consumingsqlrules out, so queries are now taken apart and reassembled first. Seesrc/rebuilt_query.rs.sqlx-coreand the per-backend driver crates become direct dependencies so theirofflinefeature can be enabled. Without itExecutor::describeis absent from the trait; with it, implementing it is mandatory.