Skip to content

Commit

Permalink
Fix try_get example in README.md (#3474)
Browse files Browse the repository at this point in the history
  • Loading branch information
luveti authored Sep 1, 2024
1 parent e10789d commit ad2936a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ The `fetch` query finalizer returns a stream-like type that iterates through the
```rust
// provides `try_next`
use futures::TryStreamExt;
// provides `try_get`
use sqlx::Row;

let mut rows = sqlx::query("SELECT * FROM users WHERE email = ?")
.bind(email)
Expand Down

0 comments on commit ad2936a

Please sign in to comment.