Skip to main content

ScopedStream

Type Alias ScopedStream 

Source
pub type ScopedStream<'q, T> = Pin<Box<dyn Stream<Item = Result<T, DbError>> + Send + 'q>>;
Expand description

A scoped compatibility stream. It preserves the fetch() consumption API; rows are currently collected before being yielded so the transaction mutex is never released while SQLx still borrows the transaction.

Aliased Typeยง

#[repr(transparent)]
pub struct ScopedStream<'q, T> { /* private fields */ }