Struct MsSqlConnectOptions
pub struct MsSqlConnectOptions { /* private fields */ }Implementations§
§impl MsSqlConnectOptions
impl MsSqlConnectOptions
pub fn from_ado_string(s: &str) -> Result<Self, Error>
pub fn from_jdbc_string(s: &str) -> Result<Self, Error>
§impl MsSqlConnectOptions
impl MsSqlConnectOptions
pub fn new() -> Self
pub fn trust_cert(self) -> Self
pub fn port(self, port: u16) -> Self
pub fn username(self, username: &str) -> Self
pub fn password(self, password: &str) -> Self
pub fn database(self, database: &str) -> Self
pub fn schema(self, schema: &str) -> Self
pub fn get_schema(&self) -> Option<&str>
pub fn integrated_security(self) -> Self
Trait Implementations§
§impl Clone for MsSqlConnectOptions
impl Clone for MsSqlConnectOptions
§fn clone(&self) -> MsSqlConnectOptions
fn clone(&self) -> MsSqlConnectOptions
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 more§impl ConnectOptions for MsSqlConnectOptions
impl ConnectOptions for MsSqlConnectOptions
type Connection = MsSqlConnection
§fn connect(&self) -> BoxFuture<'_, Result<Self::Connection, Error>>where
Self::Connection: Sized,
fn connect(&self) -> BoxFuture<'_, Result<Self::Connection, Error>>where
Self::Connection: Sized,
Establish a new database connection with the options specified by
self.§fn log_statements(&mut self, level: LevelFilter) -> &mut Self
fn log_statements(&mut self, level: LevelFilter) -> &mut Self
Log executed statements with the specified
level§fn log_slow_statements(
&mut self,
level: LevelFilter,
duration: Duration,
) -> &mut Self
fn log_slow_statements( &mut self, level: LevelFilter, duration: Duration, ) -> &mut Self
Log executed statements with a duration above the specified
duration
at the specified level.§fn disable_statement_logging(&mut self) -> &mut Self
fn disable_statement_logging(&mut self) -> &mut Self
Entirely disables statement logging (both slow and regular).
§impl Debug for MsSqlConnectOptions
impl Debug for MsSqlConnectOptions
§impl Default for MsSqlConnectOptions
impl Default for MsSqlConnectOptions
§impl From<Config> for MsSqlConnectOptions
impl From<Config> for MsSqlConnectOptions
Auto Trait Implementations§
impl Freeze for MsSqlConnectOptions
impl RefUnwindSafe for MsSqlConnectOptions
impl Send for MsSqlConnectOptions
impl Sync for MsSqlConnectOptions
impl Unpin for MsSqlConnectOptions
impl UnwindSafe for MsSqlConnectOptions
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