Trait sea_orm::StreamTrait
source · pub trait StreamTrait: Send + Sync {
type Stream<'a>: Stream<Item = Result<QueryResult, DbErr>> + Send
where Self: 'a;
// Required method
fn stream<'a>(
&'a self,
stmt: Statement
) -> Pin<Box<dyn Future<Output = Result<Self::Stream<'a>, DbErr>> + Send + 'a>>;
}
Expand description
Stream query results
Required Associated Types§
sourcetype Stream<'a>: Stream<Item = Result<QueryResult, DbErr>> + Send
where
Self: 'a
type Stream<'a>: Stream<Item = Result<QueryResult, DbErr>> + Send where Self: 'a
Create a stream for the QueryResult