Module tokio_postgres_extractor::stream
source · Expand description
Extension traits for working with RowStream
s.
Using these extension traits, RowStream
s can be turned into Stream
s producing
Extract
able types.
Examples
#[derive(Columns, Extract)]
struct User {
id: i32,
name: String,
}
async fn extract_users(i: RowStream) -> Result<Vec<User>, Error> {
i.extract().try_collect().await
}
Structs
Traits
- Extension trait for extracting from a
RowStream
.