Skip to content

Commit 5a8418e

Browse files
authored
Fix query! documentation of .execute (launchbadge#1179)
1 parent fda55fe commit 5a8418e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
///
3333
/// | Number of Rows | Method to Call* | Returns | Notes |
3434
/// |----------------| ----------------------------|-----------------------------------------------------|-------|
35-
/// | None† | `.execute(...).await` | `sqlx::Result<DB::QueryResult> | For `INSERT`/`UPDATE`/`DELETE` without `RETURNING`. |
35+
/// | None† | `.execute(...).await` | `sqlx::Result<DB::QueryResult>` | For `INSERT`/`UPDATE`/`DELETE` without `RETURNING`. |
3636
/// | Zero or One | `.fetch_optional(...).await`| `sqlx::Result<Option<{adhoc struct}>>` | Extra rows are ignored. |
3737
/// | Exactly One | `.fetch_one(...).await` | `sqlx::Result<{adhoc struct}>` | Errors if no rows were returned. Extra rows are ignored. Aggregate queries, use this. |
3838
/// | At Least One | `.fetch(...)` | `impl Stream<Item = sqlx::Result<{adhoc struct}>>` | Call `.try_next().await` to get each row result. |

0 commit comments

Comments
 (0)