Struct sqlx::any::AnyConnectOptions [−][src]
pub struct AnyConnectOptions(_);
Expand description
Opaque options for connecting to a database. These may only be constructed by parsing from a connection uri.
postgres://postgres:password@localhost/database
mysql://root:password@localhost/database
Implementations
Trait Implementations
type Connection = AnyConnection
Establish a new database connection with the options specified by self
.
Log executed statements with the specified level
pub fn log_slow_statements(
&mut self,
level: LevelFilter,
duration: Duration
) -> &mut AnyConnectOptions
pub fn log_slow_statements(
&mut self,
level: LevelFilter,
duration: Duration
) -> &mut AnyConnectOptions
Log executed statements with a duration above the specified duration
at the specified level
. Read more
Entirely disables statement logging (both slow and regular).
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.