[][src]Trait sqlx::Connect

pub trait Connect: Connection {
    fn connect<T>(
        url: T
    ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + 'static + Send>>
    where
        T: TryInto<Url, Error = Error>
; }

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 = Error>, 

Establish a new database connection.

Loading content...

Implementors

impl Connect for MySqlConnection[src]

impl Connect for PgConnection[src]

Loading content...