Skip to content

Support SQLx 0.9#1076

Merged
tyt2y3 merged 3 commits into
masterfrom
sqlx-0.9
May 24, 2026
Merged

Support SQLx 0.9#1076
tyt2y3 merged 3 commits into
masterfrom
sqlx-0.9

Conversation

@tyt2y3
Copy link
Copy Markdown
Member

@tyt2y3 tyt2y3 commented May 24, 2026

Cont'd #1075

zefr0x and others added 3 commits May 24, 2026 16:45
`sqlx` had a breaking change in its cargo build features that is ported
to `sea-query` in a compatible way. Old features should be documented as
deprecated in the next release's changelog.

As per `sqlx`'s [MSRV
policy](https://github.com/launchbadge/sqlx/blob/75bc0487eb661da811bb7a3c5d158f1bd463fef4/FAQ.md#MSRV),
the supported Rust version is
[1.94.0](https://doc.rust-lang.org/stable/releases.html#version-1940-2026-03-05).

<!--

Thank you for contributing to this project!

If you need any help please feel free to contact us on Discord:
https://discord.com/invite/uCPdDXzbdv
Or, mention our core members by typing `@GitHub_Handle` on any issue /
PR

Add some test cases! It help reviewers to understand the behaviour and
prevent it to be broken in the future.

-->

## PR Info

<!-- mention the related issue -->
- Closes <!-- issue link -->

<!-- is this PR depends on other PR? (if applicable) -->
- Dependencies:
  - pgvector/pgvector-rust#25

<!-- any PR depends on this PR? (if applicable) -->
- Dependents:
  - SeaQL/sea-orm#3065

## New Features

<!-- - [ ] <!-- what are the new features? -->

## Bug Fixes

<!-- - [ ] <!-- if it fixes a bug, please provide a brief analysis of
the original bug -->

## Breaking Changes

<!-- - [ ] <!-- any change in behaviour or method signature? is it
backward compatible? -->

## Changes

- [x] Upgrade `sqlx` to `0.9`
- [x] New `tls-*` cargo features were exposed from `sqlx`.
Keep the main sea-query crate on Rust 1.88 while running sea-query-sqlx and sqlx examples on Rust 1.94.

Update CI to exercise sqlx 0.9 split runtime/TLS features while preserving coverage for legacy runtime/TLS aliases.

Adapt SeaQuery sqlx helper macros and examples to wrap generated dynamic SQL with sqlx::AssertSqlSafe.

Update sqlx IntoArguments impls for the sqlx 0.9 signature changes.
Keep jiff-sqlx as an optional dormant dependency, but remove it from active with-jiff feature wiring because jiff-sqlx 0.1.1 still depends on sqlx 0.8.

Gate Jiff support for Postgres/MySQL/Any behind an explicit acknowledgement feature until jiff-sqlx releases sqlx 0.9 support.

Remove Jiff from the Postgres SQLx example for now and configure docs.rs to avoid the broken integration path.

This commit is intended to be reverted once jiff-sqlx supports sqlx 0.9.
@tyt2y3 tyt2y3 merged commit 311e92d into master May 24, 2026
18 checks passed
@tyt2y3 tyt2y3 deleted the sqlx-0.9 branch May 24, 2026 20:07
@github-actions
Copy link
Copy Markdown

🎉 Released In 1.0.0 🎉

Thank you everyone for the contribution!
This feature is now available in the latest release. Now is a good time to upgrade!
Your participation is what makes us unique; your adoption is what drives us forward.
You can support SeaQL 🌊 by starring our repos, sharing our libraries and becoming a sponsor ⭐.

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