Skip to main content

query_stream_as

Function query_stream_as 

Source
pub fn query_stream_as<T, R, I>(
    sql: impl Into<Sql>,
    params: Vec<SqlValue>,
) -> Stream<T, SqlError, R>
where T: FromRow + Send + 'static, R: Selector<SqlClientService, I> + HList + Send + Sync + 'static,
Expand description

query_stream decoding every row as T (FromRow); a row that does not decode fails the stream with its error.