Struct clickhouse_rs::Options
source · pub struct Options { /* private fields */ }Expand description
Clickhouse connection options.
Implementations
sourceimpl Options
impl Options
pub fn new(addr: SocketAddr) -> Options
pub fn database(self, database: &str) -> Options
pub fn username(self, username: &str) -> Options
pub fn password(self, password: &str) -> Options
sourcepub fn with_compression(self) -> Options
pub fn with_compression(self) -> Options
Enable compression (defaults to false).
pub fn pool_min(self, pool_min: usize) -> Options
pub fn pool_max(self, pool_max: usize) -> Options
pub fn nodelay(self, nodelay: bool) -> Options
pub fn keepalive(self, keepalive: Option<Duration>) -> Options
pub fn ping_before_query(self, ping_before_query: bool) -> Options
pub fn send_retries(self, send_retries: usize) -> Options
pub fn retry_timeout(self, retry_timeout: Duration) -> Options
pub fn ping_timeout(self, ping_timeout: Duration) -> Options
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more