[−][src]Trait sqlx::Connect
Represents a type that can directly establish a new connection.
Required methods
fn connect<T>(
url: T
) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + 'static + Send>> where
T: TryInto<Url, Error = ParseError>,
url: T
) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + 'static + Send>> where
T: TryInto<Url, Error = ParseError>,
Establish a new database connection.
Implementors
impl Connect for MySqlConnection[src]
fn connect<T>(
url: T
) -> Pin<Box<dyn Future<Output = Result<MySqlConnection, Error>> + 'static + Send>> where
T: TryInto<Url, Error = ParseError>,
MySqlConnection: Sized, [src]
url: T
) -> Pin<Box<dyn Future<Output = Result<MySqlConnection, Error>> + 'static + Send>> where
T: TryInto<Url, Error = ParseError>,
MySqlConnection: Sized,
impl Connect for PgConnection[src]
fn connect<T>(
url: T
) -> Pin<Box<dyn Future<Output = Result<PgConnection, Error>> + 'static + Send>> where
T: TryInto<Url, Error = ParseError>,
PgConnection: Sized, [src]
url: T
) -> Pin<Box<dyn Future<Output = Result<PgConnection, Error>> + 'static + Send>> where
T: TryInto<Url, Error = ParseError>,
PgConnection: Sized,
impl Connect for SqliteConnection[src]
fn connect<T>(
url: T
) -> Pin<Box<dyn Future<Output = Result<SqliteConnection, Error>> + 'static + Send>> where
T: TryInto<Url, Error = ParseError>,
SqliteConnection: Sized, [src]
url: T
) -> Pin<Box<dyn Future<Output = Result<SqliteConnection, Error>> + 'static + Send>> where
T: TryInto<Url, Error = ParseError>,
SqliteConnection: Sized,