[−][src]Trait sqlx_core::Connect
Represents a type that can directly establish a new connection.
Associated Types
type Connection: Connection
Required methods
fn connect<T>(url: T) -> BoxFuture<'static, Result<Self::Connection>> where
T: TryInto<Url, Error = Error>,
Self: Sized,
T: TryInto<Url, Error = Error>,
Self: Sized,
Establish a new database connection.