mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-03 15:55:45 +00:00

* WIP preparing 0.7.0 release * fix: re-enable examples * fix doctests in `sqlx-core` * cherry-pick CHANGELOG entry for 0.6.3 * add actions workflow for examples * fix(cli): close connection after running migrations * fix examples * fix(sqlite): fix parsing of URLs via `Any` * fix(example): don't let Postgres `listen` example run forever * fix Postgres `transaction` example
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!