[−][src]Trait rbatis_core::connection::Connect
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,
T: TryInto<Url, Error = ParseError>,
Self: Sized,
Establish a new database connection.
Implementors
impl Connect for MySqlConnection[src]
fn connect<T>(url: T) -> BoxFuture<'static, Result<MySqlConnection>> where
T: TryInto<Url, Error = ParseError>,
Self: Sized, [src]
T: TryInto<Url, Error = ParseError>,
Self: Sized,
impl Connect for PgConnection[src]
fn connect<T>(url: T) -> BoxFuture<'static, Result<PgConnection>> where
T: TryInto<Url, Error = ParseError>,
Self: Sized, [src]
T: TryInto<Url, Error = ParseError>,
Self: Sized,
impl Connect for SqliteConnection[src]
fn connect<T>(url: T) -> BoxFuture<'static, Result<SqliteConnection>> where
T: TryInto<Url, Error = ParseError>,
Self: Sized, [src]
T: TryInto<Url, Error = ParseError>,
Self: Sized,