[][src]Struct clickhouse_rs::ClientHandle

pub struct ClientHandle { /* fields omitted */ }

Clickhouse client handle.

Implementations

impl ClientHandle[src]

pub fn ping(self) -> impl Future<Item = Self, Error = Error>[src]

pub fn query<Q>(self, sql: Q) -> QueryResult where
    Query: From<Q>, 
[src]

Executes Clickhouse query on Conn.

pub fn query_all<Q>(
    self,
    sql: Q
) -> Box<dyn Future<Item = (Self, Block<Complex>), Error = Error> + Send> where
    Query: From<Q>, 
[src]

👎 Deprecated since 0.1.7:

please use query(sql).fetch_all() instead

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

pub fn execute<Q>(self, sql: Q) -> impl Future<Item = Self, Error = Error> where
    Query: From<Q>, 
[src]

Convenience method to prepare and execute a single SQL statement.

pub fn insert<Q>(
    self,
    table: Q,
    block: Block
) -> impl Future<Item = Self, Error = Error> where
    Query: From<Q>, 
[src]

Convenience method to insert block of data.

pub fn check_connection(self) -> impl Future<Item = Self, Error = Error>[src]

Check connection and try to reconnect if necessary.

Trait Implementations

impl Debug for ClientHandle[src]

impl Drop for ClientHandle[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.