[][src]Struct clickhouse_rs::ClientHandle

pub struct ClientHandle { /* fields omitted */ }

Clickhouse client handle.

Methods

impl ClientHandle[src]

pub fn ping(self) -> Box<dyn Future<Item = Self, Error = Error> + Send>[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), 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
) -> Box<dyn Future<Item = Self, Error = Error> + Send> where
    Query: From<Q>, 
[src]

Convenience method to prepare and execute a single SQL statement.

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

Convenience method to insert block of data.

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

Check connection and try to reconnect if necessary.

Trait Implementations

impl Drop for ClientHandle[src]

impl Debug for ClientHandle[src]

Auto Trait Implementations

Blanket Implementations

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.

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

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

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

impl<T> Erased for T