[][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 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