---
title: "sqlx 0.9.0 Breaking Changes on crates.io | Since.dev"
description: "What each sqlx release removed, renamed or changed: 82 breaking changes in 4 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/sqlx
last_updated: 2026-12-04
---

# sqlx breaking changes

sqlx 0.9.0 (May 21, 2026) is its newest release with breaking changes, 23 of them. The first: Removed sqlx::TransactionManager. Every breaking API change we have recorded in sqlx on crates.io: 82 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.9.1`, released November 18, 2026. [Source repository](https://github.com/launchbadge/sqlx)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [0.6.0](#v-0-6-0) to [0.9.0](#v-0-9-0): 68 breaking changes in 3 versions.

## sqlx 0.9.0 breaking changes

sqlx 0.9.0, released May 21, 2026: 23 breaking changes.

- **Removed** `sqlx::TransactionManager`  

The re-export of the unstable TransactionManager trait from sqlx was deleted. [crates.io](https://crates.io/crates/sqlx/0.9.0)
- **Removed** `sqlx.migrate.Migrator`  

The supported Rust version for this release is 1.94.0, and the MSRV was raised. [github.com](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **Removed** `sqlx.migrate.Migrator.set_ignore_missing`  

Lifetime parameter removed from Arguments trait. [github.com](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **Removed** `sqlx.sqlx-postgres.PgLTree.from`  

The PgLTree from method was moved to a From\<Vec\<PgLTreeLabel>> implementation. [github.com](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **Behavior changed** `impl Decode for Cow`  

Decoding into Cow now always yields Cow::Owned and the lifetime is unlinked. [github.com](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **Behavior changed** `PgConnectOptions.options`  

Options passed to PgConnectOptions::options() are escaped automatically; manual escaping may now misbehave. [github.com](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **Behavior changed** `sqlx.any.AnyTypeInfo`  

Text and blob types are now correctly converted to AnyTypeInfo, which may change inferred types. [github.com](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **Behavior changed** `sqlx.migrate.Migrate`  

The Migrate trait changed significantly, so custom implementations may need updates. [github.com](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **Behavior changed** `sqlx.migrate.Migrator`  

Migration ordering is now deterministic, which may change the order migrations run in. [github.com](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **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](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **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](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **Behavior changed** `sqlx.Pool.close`  

Pool.close now closes all connections before it returns. [github.com](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **Behavior changed** `sqlx.sqlite.SqliteArguments`  

Bound values are no longer borrowed and lifetime parameters were removed from SqliteArguments, AnyArguments and Arguments. [github.com](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **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](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **Behavior changed** `sqlx.sqlite.SqliteRow`  

Debug output for PgRow, MySqlRow and SqliteRow was unified. [github.com](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **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](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **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](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **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](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **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](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **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](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **Signature changed** `sqlx.raw_sql.RawSql.fetch_optional`  

RawSql::fetch_optional now returns Result\<Option\<Row>> instead of Result\<Row>. [github.com](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **Signature changed** `sqlx.sqlite.SqliteConnectOptions.extension`  

Extension loading is now unsafe and requires the sqlite-load-extension feature. [github.com](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)
- **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](https://github.com/launchbadge/sqlx/blob/v0.9.0/CHANGELOG.md)

## sqlx 0.8.0 breaking changes

sqlx 0.8.0, released July 23, 2024: 16 breaking changes.

- **Removed** `HasArguments`  

HasArguments was replaced by generic associated types in Database. Update code that references it. [github.com](https://github.com/launchbadge/sqlx/blob/v0.8.0/CHANGELOG.md)
- **Removed** `HasStatement`  

HasStatement was replaced by generic associated types in Database. Update code that references it. [github.com](https://github.com/launchbadge/sqlx/blob/v0.8.0/CHANGELOG.md)
- **Removed** `HasValueRef`  

HasValueRef was replaced by generic associated types in Database. Update code that references it. [github.com](https://github.com/launchbadge/sqlx/blob/v0.8.0/CHANGELOG.md)
- **Removed** `sqlx.test`  

Type ascription syntax in the query macros was removed. Rewrite queries that use it. [github.com](https://github.com/launchbadge/sqlx/blob/v0.8.0/CHANGELOG.md)
- **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](https://github.com/launchbadge/sqlx/blob/v0.8.0/CHANGELOG.md)
- **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](https://github.com/launchbadge/sqlx/blob/v0.8.0/CHANGELOG.md)
- **Behavior changed** `Encode`  

Encode now returns a result, so implementations and callers must handle the return value. [github.com](https://github.com/launchbadge/sqlx/blob/v0.8.0/CHANGELOG.md)
- **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](https://github.com/launchbadge/sqlx/blob/v0.8.0/CHANGELOG.md)
- **Behavior changed** `MigrateError`  

MigrateError has breaking changes adding version information for failed CLI migrations. Code matching on it may need updating. [github.com](https://github.com/launchbadge/sqlx/blob/v0.8.0/CHANGELOG.md)
- **Behavior changed** `MySqlConnection`  

The Send trait bound was removed from argument binding, which may affect generic code that relied on it. [github.com](https://github.com/launchbadge/sqlx/blob/v0.8.0/CHANGELOG.md)

And 6 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## sqlx 0.7.0 breaking changes

sqlx 0.7.0, released July 3, 2023: 29 breaking changes.

- **Removed**  

The MSSQL driver has been removed. Code that relies on it must move to another database driver. [github.com](https://github.com/launchbadge/sqlx/blob/v0.7.0/CHANGELOG.md)
- **Removed**  

Testing now starts on Postgres 15 and Postgres 10 is no longer supported. Upgrade the database server before using this release. [github.com](https://github.com/launchbadge/sqlx/blob/v0.7.0/CHANGELOG.md)
- **Removed** `sqlx::Mssql`  

sqlx::Mssql was removed in sqlx 0.7.0 [crates.io](https://crates.io/crates/sqlx/0.7.0)
- **Removed** `sqlx::MssqlConnection`  

sqlx::MssqlConnection was removed in sqlx 0.7.0 [crates.io](https://crates.io/crates/sqlx/0.7.0)
- **Removed** `sqlx::MssqlExecutor`  

sqlx::MssqlExecutor was removed in sqlx 0.7.0 [crates.io](https://crates.io/crates/sqlx/0.7.0)
- **Removed** `sqlx::MssqlPool`  

sqlx::MssqlPool was removed in sqlx 0.7.0 [crates.io](https://crates.io/crates/sqlx/0.7.0)
- **Behavior changed**  

DATETIME columns in SQLite are now decoded assuming UTC when using the time crate. Adjust code that expected local time. [github.com](https://github.com/launchbadge/sqlx/blob/v0.7.0/CHANGELOG.md)
- **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](https://github.com/launchbadge/sqlx/blob/v0.7.0/CHANGELOG.md)
- **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](https://github.com/launchbadge/sqlx/blob/v0.7.0/CHANGELOG.md)
- **Behavior changed**  

Offline query data is now written as a separate file for each query! invocation. Regenerate offline query data after upgrading. [github.com](https://github.com/launchbadge/sqlx/blob/v0.7.0/CHANGELOG.md)

And 19 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## sqlx 0.6.0 breaking changes

sqlx 0.6.0, released June 16, 2022: 14 breaking changes.

- **Removed** `PoolConnection.release`  

Use PoolConnection::detach instead, which replaced the previously deprecated release method. [github.com](https://github.com/launchbadge/sqlx/blob/v0.6.0/CHANGELOG.md)
- **Renamed** `PoolOptions.connect_timeout`  

Rename uses of connect_timeout on PoolOptions to acquire_timeout. [github.com](https://github.com/launchbadge/sqlx/blob/v0.6.0/CHANGELOG.md)
- **Behavior changed**  

The crate moved to edition 2021, effectively requiring Rust 1.56.0 or later. [github.com](https://github.com/launchbadge/sqlx/blob/v0.6.0/CHANGELOG.md)
- **Behavior changed**  

DateTime\<FixedOffset> values are now written to SQLite with the correct timezone rather than always in UTC, changing stored data. [github.com](https://github.com/launchbadge/sqlx/blob/v0.6.0/CHANGELOG.md)
- **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](https://github.com/launchbadge/sqlx/blob/v0.6.0/CHANGELOG.md)
- **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](https://github.com/launchbadge/sqlx/blob/v0.6.0/CHANGELOG.md)
- **Behavior changed** `sqlx.query_as`  

Streams continue past decoding errors rather than ending, which changes consumer behavior. [github.com](https://github.com/launchbadge/sqlx/blob/v0.6.0/CHANGELOG.md)
- **Behavior changed** `sqlx.query!`  

Macro-generated code for some SQLite queries may change. [github.com](https://github.com/launchbadge/sqlx/blob/v0.6.0/CHANGELOG.md)
- **Behavior changed** `sqlx.sqlite.types.chrono.DateTime`  

Values are sent to SQLite with their original offset, which changes how dates are stored. [github.com](https://github.com/launchbadge/sqlx/blob/v0.6.0/CHANGELOG.md)
- **Signature changed** `PgLTree.push`  

push no longer returns a Result and accepts PgLTreeLabel instead of the previous input; update call sites. [github.com](https://github.com/launchbadge/sqlx/blob/v0.6.0/CHANGELOG.md)

And 4 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
