sqlx breaking changes
Updated December 4, 2026
On this page
Latest version 0.9.1, released November 18, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
sqlx 0.9.0 breaking changes
- Removed
sqlx::TransactionManager
The re-export of the unstable TransactionManager trait from sqlx was deleted. crates.io - Removed
sqlx.migrate.Migrator
The supported Rust version for this release is 1.94.0, and the MSRV was raised. github.com - Removed
sqlx.migrate.Migrator.set_ignore_missing
Lifetime parameter removed from Arguments trait. github.com - Removed
sqlx.sqlx-postgres.PgLTree.from
The PgLTree from method was moved to a From<Vec<PgLTreeLabel>> implementation. github.com - Behavior changed
impl Decode for Cow
Decoding into Cow now always yields Cow::Owned and the lifetime is unlinked. github.com - Behavior changed
PgConnectOptions.options
Options passed to PgConnectOptions::options() are escaped automatically; manual escaping may now misbehave. github.com - Behavior changed
sqlx.any.AnyTypeInfo
Text and blob types are now correctly converted to AnyTypeInfo, which may change inferred types. github.com - Behavior changed
sqlx.migrate.Migrate
The Migrate trait changed significantly, so custom implementations may need updates. github.com - Behavior changed
sqlx.migrate.Migrator
Migration ordering is now deterministic, which may change the order migrations run in. github.com - Behavior changed
sqlx.mysql.mysql-rsa feature
Connections requiring RSA password encryption must enable the mysql-rsa feature or they error at runtime. github.com - Behavior changed
sqlx.mysql.MySqlConnectOptions.charset
Non-binary text columns are now inferred as String and SET NAMES utf8mb4 is sent without a collation by default. github.com - Behavior changed
sqlx.Pool.close
Pool.close now closes all connections before it returns. github.com - Behavior changed
sqlx.sqlite.SqliteArguments
Bound values are no longer borrowed and lifetime parameters were removed from SqliteArguments, AnyArguments and Arguments. github.com - Behavior changed
sqlx.sqlite.SqliteConnection.serialize
Serialize and deserialize now need the sqlite-deserialize feature; extension loading is unsafe and needs sqlite-load-extension. github.com - Behavior changed
sqlx.sqlite.SqliteRow
Debug output for PgRow, MySqlRow and SqliteRow was unified. github.com - Behavior changed
sqlx.sqlite.SqliteValue
SqliteValue is no longer Sync and SqliteValueRef is no longer Send; values decoding a second type now error. github.com - Default changed
sqlx.mysql.MySqlConnectOptions.set_names
By default SET NAMES utf8mb4 is sent instead of SET NAMES utf8mb4 COLLATE utf8_general_ci. github.com - Configuration changed
cargo install --locked sqlx-cli
The Cargo.lock is no longer tracked in Git, so cargo install --locked sqlx-cli will no longer work. Users needing reproducible builds should maintain their own lockfile. github.com - Signature changed
sqlx.migrate.Migrator.set_ignore_missing
set_ignore_missing now returns &mut Self instead of &Self, which may break code in rare cases. github.com - Signature changed
sqlx.migrate.Migrator.set_locking
set_locking now returns &mut Self instead of &Self, which may break code in rare cases. github.com - Signature changed
sqlx.raw_sql.RawSql.fetch_optional
RawSql::fetch_optional now returns Result<Option<Row>> instead of Result<Row>. github.com - Signature changed
sqlx.sqlite.SqliteConnectOptions.extension
Extension loading is now unsafe and requires the sqlite-load-extension feature. github.com - Signature changed
sqlx.sqlx_core.raw_sql.RawSql
All RawSql methods now take a DB type parameter, so call sites and type annotations must be updated. github.com
sqlx 0.8.0 breaking changes
- Removed
HasArguments
HasArguments was replaced by generic associated types in Database. Update code that references it. github.com - Removed
HasStatement
HasStatement was replaced by generic associated types in Database. Update code that references it. github.com - Removed
HasValueRef
HasValueRef was replaced by generic associated types in Database. Update code that references it. github.com - Removed
sqlx.test
Type ascription syntax in the query macros was removed. Rewrite queries that use it. github.com - Behavior changed
ConnectOptions.to_url_lossy
The output of to_url_lossy changed to match the sslmode names that parsing expects. Code comparing generated URLs may change. github.com - Behavior changed
Database
The Database trait was reworked to use generic associated types, replacing HasValueRef, HasArguments and HasStatement. Code implementing or naming those traits must be updated. github.com - Behavior changed
Encode
Encode now returns a result, so implementations and callers must handle the return value. github.com - Behavior changed
FromRow
Errors from sqlx(try_from) now return Error::ColumnDecode instead of Error::ColumnNotFound, and default no longer suppresses them. Wrap types implementing From and apply default explicitly if needed. github.com - Behavior changed
MigrateError
MigrateError has breaking changes adding version information for failed CLI migrations. Code matching on it may need updating. github.com - Behavior changed
MySqlConnection
The Send trait bound was removed from argument binding, which may affect generic code that relied on it. github.com
And 6 more in this version. Sign up to see every change
sqlx 0.7.0 breaking changes
- Removed
The MSSQL driver has been removed. Code that relies on it must move to another database driver. github.com - Removed
Testing now starts on Postgres 15 and Postgres 10 is no longer supported. Upgrade the database server before using this release. github.com - Removed
sqlx::Mssql
sqlx::Mssql was removed in sqlx 0.7.0 crates.io - Removed
sqlx::MssqlConnection
sqlx::MssqlConnection was removed in sqlx 0.7.0 crates.io - Removed
sqlx::MssqlExecutor
sqlx::MssqlExecutor was removed in sqlx 0.7.0 crates.io - Removed
sqlx::MssqlPool
sqlx::MssqlPool was removed in sqlx 0.7.0 crates.io - Behavior changed
DATETIME columns in SQLite are now decoded assuming UTC when using the time crate. Adjust code that expected local time. github.com - Behavior changed
OffsetDateTime is now the first type used when deserializing a timestamp column. Code relying on another type may see different results. github.com - Behavior changed
The linkage to libsqlite3-sys is considered semver-exempt and may be upgraded in any release. Pin sqlx and rusqlite versions to avoid breakage. github.com - Behavior changed
Offline query data is now written as a separate file for each query! invocation. Regenerate offline query data after upgrading. github.com
And 19 more in this version. Sign up to see every change
sqlx 0.6.0 breaking changes
- Removed
PoolConnection.release
Use PoolConnection::detach instead, which replaced the previously deprecated release method. github.com - Renamed
PoolOptions.connect_timeout
Rename uses of connect_timeout on PoolOptions to acquire_timeout. github.com - Behavior changed
The crate moved to edition 2021, effectively requiring Rust 1.56.0 or later. github.com - Behavior changed
DateTime<FixedOffset> values are now written to SQLite with the correct timezone rather than always in UTC, changing stored data. github.com - Behavior changed
Several dependency upgrades are breaking for users of the crate's API. Review code that depends on those types after upgrading. github.com - Behavior changed
sqlx.postgres.types.Oid
The u32 impls for Postgres were dropped; use the Oid newtype instead when binding or decoding OIDs. github.com - Behavior changed
sqlx.query_as
Streams continue past decoding errors rather than ending, which changes consumer behavior. github.com - Behavior changed
sqlx.query!
Macro-generated code for some SQLite queries may change. github.com - Behavior changed
sqlx.sqlite.types.chrono.DateTime
Values are sent to SQLite with their original offset, which changes how dates are stored. github.com - Signature changed
PgLTree.push
push no longer returns a Result and accepts PgLTreeLabel instead of the previous input; update call sites. github.com
And 4 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.