From af7f2594457e991fd84a97a2170f79801fbdf1df Mon Sep 17 00:00:00 2001 From: Tim Habermaas Date: Sat, 23 Jan 2021 17:18:00 +0100 Subject: [PATCH] Remove fetch_scalar mention from README.md The function no longer exists. Fixes #969. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4438355a..a91bf855 100644 --- a/README.md +++ b/README.md @@ -247,7 +247,7 @@ sqlx::query("DELETE FROM table").execute(&pool).await?; ``` The `execute` query finalizer returns the number of affected rows, if any, and drops all received results. -In addition, there are `fetch`, `fetch_one`, `fetch_optional`, `fetch_all`, and `fetch_scalar` to receive results. +In addition, there are `fetch`, `fetch_one`, `fetch_optional`, and `fetch_all` to receive results. The `Query` type returned from `sqlx::query` will return `Row<'conn>` from the database. Column values can be accessed by ordinal or by name with `row.get()`. As the `Row` retains an immutable borrow on the connection, only one