Skip to content

chore: Bump to 0.5.0 - #38

Merged
chmodas merged 1 commit into
trunkfrom
update-deps
Aug 9, 2026
Merged

chore: Bump to 0.5.0#38
chmodas merged 1 commit into
trunkfrom
update-deps

Conversation

@chmodas

@chmodas chmodas commented Aug 8, 2026

Copy link
Copy Markdown
Owner

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.

@chmodas
chmodas force-pushed the update-deps branch 2 times, most recently from 30adf83 to ed190a9 Compare August 9, 2026 09:41
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-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 97.88732% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 99.84%. Comparing base (947ec61) to head (0c798ce).

Files with missing lines Patch % Lines
src/rebuilt_query.rs 97.14% 3 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chmodas
chmodas merged commit e6bb1f8 into trunk Aug 9, 2026
2 checks passed
@chmodas
chmodas deleted the update-deps branch August 9, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants