mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-27 03:25:08 +00:00
Inlined format args make code more readable, and code more compact. I ran this clippy command to fix most cases, and then cleaned up a few trailing commas and uncaught edge cases. ``` cargo clippy --bins --examples --benches --tests --lib --workspace --fix -- -A clippy::all -W clippy::uninlined_format_args ```
This example demonstrates how to write integration tests for an API build with Axum and SQLx using #[sqlx::test].
See also: https://github.com/tokio-rs/axum/blob/main/examples/testing
Warning
For the sake of brevity, this project omits numerous critical security precautions. You can use it as a starting point, but deploy to production at your own risk!