Trait sqlx_core::connection::ConnectOptions [−][src]
Associated Types
type Connection: Connection + ?Sized
[src]
Required methods
fn connect(&self) -> BoxFuture<'_, Result<Self::Connection, Error>> where
Self::Connection: Sized,
[src]
Self::Connection: Sized,
Establish a new database connection with the options specified by self
.
fn log_statements(&mut self, level: LevelFilter) -> &mut Self
[src]
Log executed statements with the specified level
fn log_slow_statements(
&mut self,
level: LevelFilter,
duration: Duration
) -> &mut Self
[src]
&mut self,
level: LevelFilter,
duration: Duration
) -> &mut Self
Log executed statements with a duration above the specified duration
at the specified level
.
Provided methods
fn disable_statement_logging(&mut self) -> &mut Self
[src]
Entirely disables statement logging (both slow and regular).
Implementors
impl ConnectOptions for AnyConnectOptions
[src]
type Connection = AnyConnection
fn connect(&self) -> BoxFuture<'_, Result<AnyConnection, Error>>
[src]
fn log_statements(&mut self, level: LevelFilter) -> &mut Self
[src]
fn log_slow_statements(
&mut self,
level: LevelFilter,
duration: Duration
) -> &mut Self
[src]
&mut self,
level: LevelFilter,
duration: Duration
) -> &mut Self
impl ConnectOptions for MssqlConnectOptions
[src]
type Connection = MssqlConnection
fn connect(&self) -> BoxFuture<'_, Result<Self::Connection, Error>> where
Self::Connection: Sized,
[src]
Self::Connection: Sized,
fn log_statements(&mut self, level: LevelFilter) -> &mut Self
[src]
fn log_slow_statements(
&mut self,
level: LevelFilter,
duration: Duration
) -> &mut Self
[src]
&mut self,
level: LevelFilter,
duration: Duration
) -> &mut Self
impl ConnectOptions for MySqlConnectOptions
[src]
type Connection = MySqlConnection
fn connect(&self) -> BoxFuture<'_, Result<Self::Connection, Error>> where
Self::Connection: Sized,
[src]
Self::Connection: Sized,
fn log_statements(&mut self, level: LevelFilter) -> &mut Self
[src]
fn log_slow_statements(
&mut self,
level: LevelFilter,
duration: Duration
) -> &mut Self
[src]
&mut self,
level: LevelFilter,
duration: Duration
) -> &mut Self
impl ConnectOptions for PgConnectOptions
[src]
type Connection = PgConnection
fn connect(&self) -> BoxFuture<'_, Result<Self::Connection, Error>> where
Self::Connection: Sized,
[src]
Self::Connection: Sized,
fn log_statements(&mut self, level: LevelFilter) -> &mut Self
[src]
fn log_slow_statements(
&mut self,
level: LevelFilter,
duration: Duration
) -> &mut Self
[src]
&mut self,
level: LevelFilter,
duration: Duration
) -> &mut Self
impl ConnectOptions for SqliteConnectOptions
[src]
type Connection = SqliteConnection
fn connect(&self) -> BoxFuture<'_, Result<Self::Connection, Error>> where
Self::Connection: Sized,
[src]
Self::Connection: Sized,
fn log_statements(&mut self, level: LevelFilter) -> &mut Self
[src]
fn log_slow_statements(
&mut self,
level: LevelFilter,
duration: Duration
) -> &mut Self
[src]
&mut self,
level: LevelFilter,
duration: Duration
) -> &mut Self