pub struct ClickhousePgConnectOptions { /* private fields */ }
Implementations§
source§impl ClickhousePgConnectOptions
impl ClickhousePgConnectOptions
pub fn new() -> Self
pub fn into_inner(self) -> PgConnectOptions
Methods from Deref<Target = PgConnectOptions>§
pub fn get_database(&self) -> Option<&str>
pub fn get_database(&self) -> Option<&str>
Get the current database name.
Example
let options = PgConnectOptions::new()
.database("postgres");
assert!(options.get_database().is_some());
Trait Implementations§
source§impl Clone for ClickhousePgConnectOptions
impl Clone for ClickhousePgConnectOptions
source§fn clone(&self) -> ClickhousePgConnectOptions
fn clone(&self) -> ClickhousePgConnectOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more