Skip to content

feat: upgrade sqlx to 0.9 and split runtime/TLS features - #111

Merged
hsluoyz merged 1 commit into
apache:masterfrom
nivek-ph:feat/upgrade-sqlx-0.9
Aug 2, 2026
Merged

feat: upgrade sqlx to 0.9 and split runtime/TLS features#111
hsluoyz merged 1 commit into
apache:masterfrom
nivek-ph:feat/upgrade-sqlx-0.9

Conversation

@nivek-ph

@nivek-ph nivek-ph commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Upgrade sqlx from 0.8 to 0.9 and refresh offline query metadata.
  • Split runtime and TLS into independent features (runtime-tokio / runtime-async-std, tls-native-tls / tls-rustls), keeping the old combined feature names as aliases.
  • Stop loading .env inside SqlxAdapter::new; tests now read DATABASE_URL (with defaults) and cover shared-pool reload on PostgreSQL.
  • Update README install/feature docs for the new feature model.

Test plan

  • cargo check --no-default-features --features postgres,runtime-tokio,tls-native-tls
  • cargo check --no-default-features --features postgres,runtime-tokio-native-tls (legacy alias)
  • cargo test --no-default-features --features postgres,runtime-tokio-native-tls
  • cargo test --no-default-features --features postgres,runtime-async-std-rustls
  • CI green for postgres / mysql / sqlite across runtime+TLS matrix

Fix: #112

- Bump `sqlx` version to 0.9 in `Cargo.toml`.
- Refactor feature aliases for TLS and runtime in `Cargo.toml`.
- Update README to reflect new feature aliases for `runtime-tokio` and `tls`.
- Remove dotenv usage in `adapter.rs` and streamline database URL handling.
- Enhance test cases to utilize a unified method for database URL retrieval.
@hsluoyz
hsluoyz merged commit 05da536 into apache:master Aug 2, 2026
3 checks passed
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.

SQLx 0.9 upgrade requires runtime/TLS feature migration and dependency cleanup

2 participants