Skip to content

Commit 40c3979

Browse files
luvetijrasanen
authored andcommitted
Fix try_get example in README.md (launchbadge#3474)
1 parent 962364d commit 40c3979

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,8 @@ The `fetch` query finalizer returns a stream-like type that iterates through the
314314
```rust
315315
// provides `try_next`
316316
use futures::TryStreamExt;
317+
// provides `try_get`
318+
use sqlx::Row;
317319

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

0 commit comments

Comments
 (0)