[][src]Struct clickhouse_rs::types::Options

pub struct Options { /* fields omitted */ }

Clickhouse connection options.

Methods

impl Options
[src]

pub fn new<A>(addr: A) -> Self where
    Address: From<A>, 
[src]

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 Default for Options
[src]

impl PartialEq<Options> for Options
[src]

impl Clone for Options
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Options
[src]

impl FromStr for Options
[src]

type Err = Error

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Send for Options

impl Sync for Options

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T