mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-25 09:39:58 +00:00
Fix the example code in README.
This commit is contained in:
parent
1bdc3e9057
commit
086dfec002
@ -229,7 +229,7 @@ The `fetch` query finalizer returns a stream-like type that iterates through the
|
||||
```rust
|
||||
let mut cursor = sqlx::query("SELECT * FROM users WHERE email = ?")
|
||||
.bind(email)
|
||||
.fetch(&mut conn).await?;
|
||||
.fetch(&mut conn);
|
||||
|
||||
while let Some(row) = cursor.next().await? {
|
||||
// map the row into a user-defined domain type
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user