Struct v_clickhouse_rs::ClientHandle[][src]

pub struct ClientHandle { /* fields omitted */ }

Clickhouse client handle.

Implementations

impl ClientHandle[src]

pub async fn ping(&mut self) -> Result<()>[src]

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

Executes Clickhouse query on Conn.

pub async fn execute<Q>(&mut self, sql: Q) -> Result<()> where
    Query: From<Q>, 
[src]

Convenience method to prepare and execute a single SQL statement.

pub async fn insert<Q>(&mut self, table: Q, block: Block) -> Result<()> where
    Query: From<Q>, 
[src]

Convenience method to insert block of data.

pub async fn check_connection(&mut self) -> Result<()>[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.