[−][src]Struct clickhouse_rs::ClientHandle
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]
Query: From<Q>,
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]
self,
sql: Q
) -> Box<dyn Future<Item = (Self, Block), Error = Error> + Send> where
Query: From<Q>,
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]
self,
sql: Q
) -> Box<dyn Future<Item = Self, Error = Error> + Send> where
Query: From<Q>,
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]
self,
table: Q,
block: Block
) -> Box<dyn Future<Item = Self, Error = Error> + Send> where
Query: From<Q>,
Convenience method to insert block of data.
pub fn check_connection(
self
) -> Box<dyn Future<Item = Self, Error = Error> + Send>[src]
self
) -> Box<dyn Future<Item = Self, Error = Error> + Send>
Check connection and try to reconnect if necessary.
Trait Implementations
impl Drop for ClientHandle[src]
impl Debug for ClientHandle[src]
Auto Trait Implementations
impl Sync for ClientHandle
impl Send for ClientHandle
impl !Unpin for ClientHandle
impl !RefUnwindSafe for ClientHandle
impl !UnwindSafe for ClientHandle
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,