[−][src]Struct clickhouse_rs::ClientHandle
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]
Query: From<Q>,
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]
self,
sql: Q
) -> Box<dyn Future<Item = (Self, Block<Complex>), 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) -> impl Future<Item = Self, Error = Error> where
Query: From<Q>,
[src]
Query: From<Q>,
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]
self,
table: Q,
block: Block
) -> impl Future<Item = Self, Error = Error> where
Query: From<Q>,
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
impl !RefUnwindSafe for ClientHandle
impl Send for ClientHandle
impl Sync for ClientHandle
impl Unpin for ClientHandle
impl !UnwindSafe for ClientHandle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,