[−][src]Struct clickhouse_rs::types::Options
Clickhouse connection options.
Methods
impl Options[src]
pub fn new<A>(addr: A) -> Self where
Address: From<A>, [src]
Address: From<A>,
Constructs a new Options.
pub fn database(self, database: &str) -> Self[src]
Database name. (defaults to default).
pub fn username(self, username: &str) -> Self[src]
User name (defaults to default).
pub fn password(self, password: &str) -> Self[src]
Access password (defaults to "").
pub fn with_compression(self) -> Self[src]
Enable compression (defaults to false).
pub fn pool_min(self, pool_min: usize) -> Self[src]
Lower bound of opened connections for Pool (defaults to 10).
pub fn pool_max(self, pool_max: usize) -> Self[src]
Upper bound of opened connections for Pool (defaults to 20).
pub fn nodelay(self, nodelay: bool) -> Self[src]
Whether to enable TCP_NODELAY (defaults to true).
pub fn keepalive(self, keepalive: Option<Duration>) -> Self[src]
TCP keep alive timeout in milliseconds (defaults to None).
pub fn ping_before_query(self, ping_before_query: bool) -> Self[src]
Ping server every time before execute any query. (defaults to true).
pub fn send_retries(self, send_retries: usize) -> Self[src]
Count of retry to send request to server. (defaults to 3).
pub fn retry_timeout(self, retry_timeout: Duration) -> Self[src]
Amount of time to wait before next retry. (defaults to 5 sec).
pub fn ping_timeout(self, ping_timeout: Duration) -> Self[src]
Timeout for ping (defaults to 500 ms).
pub fn connection_timeout(self, connection_timeout: Duration) -> Self[src]
Timeout for connection (defaults to 500 ms).
Trait Implementations
impl Clone for Options[src]
fn clone(&self) -> Options[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Default for Options[src]
impl PartialEq<Options> for Options[src]
impl Debug for Options[src]
impl FromStr for Options[src]
Auto Trait Implementations
impl Sync for Options
impl Send for Options
impl Unpin for Options
impl RefUnwindSafe for Options
impl UnwindSafe for Options
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &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>,
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,