pub struct Client<T>where
T: Interface,{
pub db: Option<String>,
pub credentials: Option<(String, String)>,
pub interface: T,
}
Expand description
Clickhouse client
Fields§
§db: Option<String>
Database
credentials: Option<(String, String)>
Credentials
interface: T
Interface
Implementations§
Source§impl<T> Client<T>where
T: Interface,
impl<T> Client<T>where
T: Interface,
Sourcepub fn query(&self, query: &str) -> QueryExecutor<'_, T>
pub fn query(&self, query: &str) -> QueryExecutor<'_, T>
Prepares a new query
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Client<T>where
T: Freeze,
impl<T> RefUnwindSafe for Client<T>where
T: RefUnwindSafe,
impl<T> Send for Client<T>
impl<T> Sync for Client<T>
impl<T> Unpin for Client<T>where
T: Unpin,
impl<T> UnwindSafe for Client<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more