sqlx/examples/postgres/axum-social-with-tests
Yuri Astrakhan a824e8468c
Cleanup format arguments (#2650)
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
```
2023-07-31 13:27:04 -07:00
..
2023-07-31 13:27:04 -07:00
2023-07-31 13:27:04 -07:00
2023-07-03 14:37:37 -07:00

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!