Skip to content

Commit

Permalink
Fix try_get example in README.md (launchbadge#3474)
Browse files Browse the repository at this point in the history
  • Loading branch information
luveti authored and jrasanen committed Oct 14, 2024
1 parent 962364d commit 40c3979
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 40c3979

Please sign in to comment.