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

* WIP rt refactors * refactor: break drivers out into separate crates also cleans up significant technical debt
Postgres Transaction Example
A simple example demonstrating how to obtain and roll back a transaction with postgres.
Usage
Declare the database URL. This example does not include any reading or writing of data.
export DATABASE_URL="postgres://postgres@localhost/postgres"
Run.
cargo run