Skip to content
Myr

Update to latest sqlx in example (#2099)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Pedersen · committed by GitHub · parent 4290955 · Browse files · 2 files+3 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−4 removed

  • other:+3 added−4 removed

2 files+3 added−4 removed

modified:examples/sqlx-postgres/src/main.rs+2 added-3 removed
91 unmodified lines
92 }93}9495async fn using_connection_extractor(96 DatabaseConnection(conn): DatabaseConnection,96 DatabaseConnection(mut conn): DatabaseConnection,97) -> Result<String, (StatusCode, String)> {98 let mut conn = conn;98 sqlx::query_scalar("select 'hello world from pg'")100 .fetch_one(&mut conn)99 .fetch_one(&mut *conn)100 .await101 .map_err(internal_error)102}103
8 unmodified lines
modified:examples/sqlx-postgres/Cargo.toml+1 added-1 removed