[][src]Struct clickhouse_rs::types::QueryResult

pub struct QueryResult { /* fields omitted */ }

Result of a query or statement execution.

Methods

impl QueryResult
[src]

pub fn fold<F, T, Fut>(
    self,
    init: T,
    f: F
) -> Box<dyn Future<Item = (ClientHandle, T), Error = Error> + Send> where
    F: Fn(T, Row) -> Fut + Send + Sync + 'static,
    Fut: IntoFuture<Item = T, Error = Error> + Send + 'static,
    Fut::Future: Send,
    T: Send + 'static, 
[src]

Method that applies a function to each row, producing a single, final value.

pub fn fetch_all(
    self
) -> Box<dyn Future<Item = (ClientHandle, Block), Error = Error> + Send>
[src]

Fetch data from table. It returns a block that contains all rows.

pub fn fold_blocks<F, T, Fut>(
    self,
    init: T,
    f: F
) -> Box<dyn Future<Item = (ClientHandle, T), Error = Error> + Send> where
    F: Fn(T, Block) -> Fut + Send + 'static,
    Fut: IntoFuture<Item = T, Error = Error> + Send + 'static,
    Fut::Future: Send,
    T: Send + 'static, 
[src]

Method that applies a function to each block, producing a single, final value.

Auto Trait Implementations

impl Send for QueryResult

impl Sync for QueryResult

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T