From 5a8418e5fd68e185c9d90099def813b1621f16cd Mon Sep 17 00:00:00 2001 From: jtroo Date: Tue, 20 Apr 2021 17:22:47 -0700 Subject: [PATCH] Fix `query!` documentation of `.execute` (#1179) --- src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macros.rs b/src/macros.rs index d18b1a45..b2cdf77f 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -32,7 +32,7 @@ /// /// | Number of Rows | Method to Call* | Returns | Notes | /// |----------------| ----------------------------|-----------------------------------------------------|-------| -/// | None† | `.execute(...).await` | `sqlx::Result | For `INSERT`/`UPDATE`/`DELETE` without `RETURNING`. | +/// | None† | `.execute(...).await` | `sqlx::Result` | For `INSERT`/`UPDATE`/`DELETE` without `RETURNING`. | /// | Zero or One | `.fetch_optional(...).await`| `sqlx::Result>` | Extra rows are ignored. | /// | Exactly One | `.fetch_one(...).await` | `sqlx::Result<{adhoc struct}>` | Errors if no rows were returned. Extra rows are ignored. Aggregate queries, use this. | /// | At Least One | `.fetch(...)` | `impl Stream>` | Call `.try_next().await` to get each row result. |