[][src]Trait sqlx_core::connection::Connect

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

Represents a type that can directly establish a new connection.

Required methods

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

Establish a new database connection.

Loading content...

Implementors

Loading content...