Trait sea_orm::StreamTrait

source ·
pub trait StreamTrait: Send + Sync {
    type Stream<'a>: Stream<Item = Result<QueryResult, DbErr>> + Send
    where
        Self: 'a
; 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

Create a stream for the QueryResult

Required Methods

Execute a Statement and return a stream of results

Implementors