[−][src]Trait sqlx::prelude::ConnectOptions
Associated Types
type Connection: Connection + ?Sized
Required methods
fn connect(
&self
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Error>> + Send>> where
Self::Connection: Sized,
&self
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Error>> + Send>> where
Self::Connection: Sized,
Establish a new database connection with the options specified by self
.
Implementors
impl ConnectOptions for AnyConnectOptions
[src]
type Connection = AnyConnection
fn connect(
&self
) -> Pin<Box<dyn Future<Output = Result<AnyConnection, Error>> + Send>>
[src]
&self
) -> Pin<Box<dyn Future<Output = Result<AnyConnection, Error>> + Send>>
impl ConnectOptions for MssqlConnectOptions
[src]
type Connection = MssqlConnection
fn connect(
&self
) -> Pin<Box<dyn Future<Output = Result<<MssqlConnectOptions as ConnectOptions>::Connection, Error>> + Send>> where
<MssqlConnectOptions as ConnectOptions>::Connection: Sized,
[src]
&self
) -> Pin<Box<dyn Future<Output = Result<<MssqlConnectOptions as ConnectOptions>::Connection, Error>> + Send>> where
<MssqlConnectOptions as ConnectOptions>::Connection: Sized,
impl ConnectOptions for MySqlConnectOptions
[src]
type Connection = MySqlConnection
fn connect(
&self
) -> Pin<Box<dyn Future<Output = Result<<MySqlConnectOptions as ConnectOptions>::Connection, Error>> + Send>> where
<MySqlConnectOptions as ConnectOptions>::Connection: Sized,
[src]
&self
) -> Pin<Box<dyn Future<Output = Result<<MySqlConnectOptions as ConnectOptions>::Connection, Error>> + Send>> where
<MySqlConnectOptions as ConnectOptions>::Connection: Sized,
impl ConnectOptions for PgConnectOptions
[src]
type Connection = PgConnection
fn connect(
&self
) -> Pin<Box<dyn Future<Output = Result<<PgConnectOptions as ConnectOptions>::Connection, Error>> + Send>> where
<PgConnectOptions as ConnectOptions>::Connection: Sized,
[src]
&self
) -> Pin<Box<dyn Future<Output = Result<<PgConnectOptions as ConnectOptions>::Connection, Error>> + Send>> where
<PgConnectOptions as ConnectOptions>::Connection: Sized,
impl ConnectOptions for SqliteConnectOptions
[src]
type Connection = SqliteConnection
fn connect(
&self
) -> Pin<Box<dyn Future<Output = Result<<SqliteConnectOptions as ConnectOptions>::Connection, Error>> + Send>> where
<SqliteConnectOptions as ConnectOptions>::Connection: Sized,
[src]
&self
) -> Pin<Box<dyn Future<Output = Result<<SqliteConnectOptions as ConnectOptions>::Connection, Error>> + Send>> where
<SqliteConnectOptions as ConnectOptions>::Connection: Sized,