mirror of
https://github.com/launchbadge/sqlx
synced 2024-09-21 06:41:56 +00:00
Fix query!
documentation of .execute
(#1179)
This commit is contained in:
parent
fda55fe3b3
commit
5a8418e5fd
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@
|
|||
///
|
||||
/// | Number of Rows | Method to Call* | Returns | Notes |
|
||||
/// |----------------| ----------------------------|-----------------------------------------------------|-------|
|
||||
/// | None† | `.execute(...).await` | `sqlx::Result<DB::QueryResult> | For `INSERT`/`UPDATE`/`DELETE` without `RETURNING`. |
|
||||
/// | None† | `.execute(...).await` | `sqlx::Result<DB::QueryResult>` | For `INSERT`/`UPDATE`/`DELETE` without `RETURNING`. |
|
||||
/// | Zero or One | `.fetch_optional(...).await`| `sqlx::Result<Option<{adhoc struct}>>` | 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<Item = sqlx::Result<{adhoc struct}>>` | Call `.try_next().await` to get each row result. |
|
||||
|
|
Loading…
Reference in a new issue