[][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 Clone for 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]

type Err = Error

The associated error which can be returned from parsing.

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]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

impl<T> Erased for T