deps(cargo): upgrade sqlx from 0.8 to 0.9#167
Open
zefr0x wants to merge 2 commits into
Open
Conversation
3 tasks
sqlx from 0.8 to 0.9
`sqlx` had a breaking change in its cargo build features that is ported to `sea-schema` in a compatible way. Old features should be documented as deprecated in the next release's changelog.
4bbed4f to
31a2745
Compare
zefr0x
commented
May 23, 2026
Comment on lines
30
to
+41
| @@ -38,7 +38,7 @@ impl Connection for Executor { | |||
| async fn query_all_raw(&self, sql: String) -> Result<Vec<SqlxRow>, SqlxError> { | |||
| debug_print!("{}", sql); | |||
|
|
|||
| Ok(sqlx::query(&sql) | |||
| Ok(sqlx::query(AssertSqlSafe(sql)) | |||
Author
There was a problem hiding this comment.
Using this API means that you have made sure that the string contents do not contain a SQL injection vulnerability. It means that, if the string was constructed dynamically, and/or from user input, you have taken care to sanitize the input yourself. SQLx does not provide any sort of sanitization; the design of SQLx prefers the use of prepared statements for dynamic input.
Ref: https://docs.rs/sqlx/0.9.0/sqlx/struct.AssertSqlSafe.html
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.
sqlxhad a breaking change in its cargo build features that is ported tosea-schemain a compatible way. Old features should be documented as deprecated in the next release's changelog.As per
sqlx's MSRV policy, the supported Rust version is 1.94.0.PR Info
sqlxfrom0.8to0.9sea-query#1075sqlxfrom0.8to0.9sea-orm#3065New Features
Bug Fixes
Breaking Changes
Changes
sqlxto0.9tls-*cargo features were exposed fromsqlx.