Struct sqlx::mssql::MssqlConnectOptions
source Ā· [−]pub struct MssqlConnectOptions { /* private fields */ }
This is supported on crate feature
mssql
only.Implementations
sourceimpl MssqlConnectOptions
impl MssqlConnectOptions
pub fn new() -> MssqlConnectOptions
pub fn host(self, host: &str) -> MssqlConnectOptions
pub fn port(self, port: u16) -> MssqlConnectOptions
pub fn username(self, username: &str) -> MssqlConnectOptions
pub fn password(self, password: &str) -> MssqlConnectOptions
pub fn database(self, database: &str) -> MssqlConnectOptions
Trait Implementations
sourceimpl Clone for MssqlConnectOptions
impl Clone for MssqlConnectOptions
sourcefn clone(&self) -> MssqlConnectOptions
fn clone(&self) -> MssqlConnectOptions
Returns a copy of the value. Read more
1.0.0 Ā· sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl ConnectOptions for MssqlConnectOptions
impl ConnectOptions for MssqlConnectOptions
type Connection = MssqlConnection
sourcefn connect(
&self
) -> Pin<Box<dyn Future<Output = Result<<MssqlConnectOptions as ConnectOptions>::Connection, Error>> + Send, Global>> where
<MssqlConnectOptions as ConnectOptions>::Connection: Sized,
fn connect(
&self
) -> Pin<Box<dyn Future<Output = Result<<MssqlConnectOptions as ConnectOptions>::Connection, Error>> + Send, Global>> where
<MssqlConnectOptions as ConnectOptions>::Connection: Sized,
Establish a new database connection with the options specified by self
.
sourcefn log_statements(&mut self, level: LevelFilter) -> &mut MssqlConnectOptions
fn log_statements(&mut self, level: LevelFilter) -> &mut MssqlConnectOptions
Log executed statements with the specified level
sourcefn log_slow_statements(
&mut self,
level: LevelFilter,
duration: Duration
) -> &mut MssqlConnectOptions
fn log_slow_statements(
&mut self,
level: LevelFilter,
duration: Duration
) -> &mut MssqlConnectOptions
Log executed statements with a duration above the specified duration
at the specified level
. Read more
sourcefn disable_statement_logging(&mut self) -> &mut Self
fn disable_statement_logging(&mut self) -> &mut Self
Entirely disables statement logging (both slow and regular).
sourceimpl Debug for MssqlConnectOptions
impl Debug for MssqlConnectOptions
sourceimpl Default for MssqlConnectOptions
impl Default for MssqlConnectOptions
sourcefn default() -> MssqlConnectOptions
fn default() -> MssqlConnectOptions
Returns the ādefault valueā for a type. Read more
sourceimpl From<MssqlConnectOptions> for AnyConnectOptions
impl From<MssqlConnectOptions> for AnyConnectOptions
sourcefn from(options: MssqlConnectOptions) -> AnyConnectOptions
fn from(options: MssqlConnectOptions) -> AnyConnectOptions
Converts to this type from the input type.
sourceimpl FromStr for MssqlConnectOptions
impl FromStr for MssqlConnectOptions
sourceimpl TryFrom<AnyConnectOptions> for MssqlConnectOptions
impl TryFrom<AnyConnectOptions> for MssqlConnectOptions
sourcefn try_from(
value: AnyConnectOptions
) -> Result<MssqlConnectOptions, <MssqlConnectOptions as TryFrom<AnyConnectOptions>>::Error>
fn try_from(
value: AnyConnectOptions
) -> Result<MssqlConnectOptions, <MssqlConnectOptions as TryFrom<AnyConnectOptions>>::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for MssqlConnectOptions
impl Send for MssqlConnectOptions
impl Sync for MssqlConnectOptions
impl Unpin for MssqlConnectOptions
impl UnwindSafe for MssqlConnectOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable Ā· sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
š¬ This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more