Fix try_get example in README.md (#3474)

This commit is contained in:
luveti 2024-09-01 05:14:55 -04:00 committed by GitHub
parent e10789d9d7
commit ad2936a9c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)