[][src]Trait sqlx_core::Connect

pub trait Connect {
    type Connection: Connection;
    fn connect<T>(url: T) -> BoxFuture<'static, Result<Self::Connection>>
    where
        T: TryInto<Url, Error = Error>,
        Self: Sized
; }

Represents a type that can directly establish a new connection.

Associated Types

Loading content...

Required methods

fn connect<T>(url: T) -> BoxFuture<'static, Result<Self::Connection>> where
    T: TryInto<Url, Error = Error>,
    Self: Sized

Establish a new database connection.

Loading content...

Implementors

Loading content...