pub struct ExaConnectOptions { /* private fields */ }Expand description
Options for connecting to the Exasol database. Implementor of ConnectOptions.
While generally automatically created through a connection string,
ExaConnectOptions::builder() can be used to get a ExaConnectOptionsBuilder.
Connection options:
access-token: Use an access token for login instead of credentialsrefresh-token: Use a refresh token for login instead of credentialsssl-mode: Select a specifc SSL behavior.ssl-ca: Use a certain certificate authorityssl-cert: Use a certain certificatessl-key: Use a specific SSL keystatement-cache-capacity: Set the capacity of the LRU prepared statements cachefetch-size: Sets the size of data chunks when retrieving result setsquery-timeout: The query timeout amount, in seconds. 0 means no timeoutcompression: Set the desired compression mode.feedback-interval: Interval at which Exasol sends keep-alive Pong frames
Implementations§
Source§impl ExaConnectOptions
impl ExaConnectOptions
pub fn builder() -> ExaConnectOptionsBuilder
Sourcepub fn builder_from_url(url: &Url) -> Result<ExaConnectOptionsBuilder>
pub fn builder_from_url(url: &Url) -> Result<ExaConnectOptionsBuilder>
Create an ExaConnectOptionsBuilder by starting from an Url.
§Errors
Returns an error if parsing the Url fails.
Sourcepub fn builder_from_str(s: &str) -> Result<ExaConnectOptionsBuilder>
pub fn builder_from_str(s: &str) -> Result<ExaConnectOptionsBuilder>
Create an ExaConnectOptionsBuilder by starting from a connection string.
§Errors
Returns an error if parsing the connection string fails.
Trait Implementations§
Source§impl Clone for ExaConnectOptions
impl Clone for ExaConnectOptions
Source§fn clone(&self) -> ExaConnectOptions
fn clone(&self) -> ExaConnectOptions
Returns a duplicate 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 moreSource§impl ConnectOptions for ExaConnectOptions
impl ConnectOptions for ExaConnectOptions
type Connection = ExaConnection
Source§fn to_url_lossy(&self) -> Url
fn to_url_lossy(&self) -> Url
Get a connection URL that may be used to connect to the same database as this
ConnectOptions. Read moreSource§async fn connect(&self) -> Result<Self::Connection>where
Self::Connection: Sized,
async fn connect(&self) -> Result<Self::Connection>where
Self::Connection: Sized,
Establish a new database connection with the options specified by
self.Source§fn log_statements(self, level: LevelFilter) -> Self
fn log_statements(self, level: LevelFilter) -> Self
Log executed statements with the specified
levelSource§fn log_slow_statements(self, level: LevelFilter, duration: Duration) -> Self
fn log_slow_statements(self, level: LevelFilter, duration: Duration) -> Self
Log executed statements with a duration above the specified
duration
at the specified level.Source§fn disable_statement_logging(self) -> Self
fn disable_statement_logging(self) -> Self
Entirely disables statement logging (both slow and regular).
Source§impl Debug for ExaConnectOptions
impl Debug for ExaConnectOptions
Auto Trait Implementations§
impl Freeze for ExaConnectOptions
impl RefUnwindSafe for ExaConnectOptions
impl Send for ExaConnectOptions
impl Sync for ExaConnectOptions
impl Unpin for ExaConnectOptions
impl UnwindSafe for ExaConnectOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more