Struct hdbconnect::ConnectParams
[−]
[src]
pub struct ConnectParams { /* fields omitted */ }
An immutable struct with all information necessary to open a new connection to a HANA database.
An instance of ConnectParams
can be created either programmatically with the builder,
or implicitly using the trait IntoConnectParams
and its implementations.
Example
use hdbconnect::IntoConnectParams; let conn_params = "hdbsql://my_user:my_passwd@the_host:2222".into_connect_params().unwrap();
Methods
impl ConnectParams
[src]
fn builder() -> ConnectParamsBuilder
[src]
Returns a new builder for ConnectParams.
fn hostname(&self) -> &String
[src]
The target host.
fn port(&self) -> u16
[src]
The target port.
fn dbuser(&self) -> &str
[src]
The database user.
fn password(&self) -> &str
[src]
The password.
fn options(&self) -> &[(String, String)]
[src]
Options to be passed to HANA.
Trait Implementations
impl Clone for ConnectParams
[src]
fn clone(&self) -> ConnectParams
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ConnectParams
[src]
impl IntoConnectParams for ConnectParams
[src]
fn into_connect_params(self) -> HdbResult<ConnectParams>
[src]
Converts the value of self
into a ConnectParams
.