launchbadge / sqlx

🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.
Apache License 2.0
13.15k stars 1.24k forks source link

Add example on how to use Transaction as Executor #3311

Closed Lachstec closed 2 months ago

Lachstec commented 3 months ago

fixes #2699 by providing an example on how to use a transaction as an executor when trying to execute queries with it.