Skip to content

v0.25.0

tagged this 02 Oct 20:32
Breaking changes:
- sqlx 0.9: Arguments no longer carry a lifetime, so QueryBuilderArgs
  and SelectQueryBuilder drop their lifetime parameter, and
  Model::select() no longer takes <'args>.
- Model::query now takes impl SqlSafeStr. Dynamic SQL must be wrapped
  in ormlite::AssertSqlSafe (now re-exported along with SqlSafeStr and
  SqlStr).
- runtime-tokio-rustls maps to sqlx's runtime-tokio + tls-rustls.

Also:
- Remove the unsafe lifetime-recast helper, no longer needed.
- Enable whoami's std feature with postgres: sqlx-postgres 0.9 disables
  it, which makes the default username resolve to "anonymous".
- kurtbuilds_sql / kurtbuilds_sql_sqlx 0.27 (sqlx 0.9).
- Wrap std::env::set_var in unsafe in the test runner (edition 2024).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assets 2
Loading