[][src]Trait sqlx::prelude::ConnectOptions

pub trait ConnectOptions: 'static + Send + Sync + Debug + FromStr<Err = Error> {
    type Connection: Connection + ?Sized;
    fn connect(
        &self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Error>> + Send>>
    where
        Self::Connection: Sized
; }

Associated Types

Loading content...

Required methods

fn connect(
    &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.

Loading content...

Implementors

impl ConnectOptions for AnyConnectOptions[src]

type Connection = AnyConnection

impl ConnectOptions for MssqlConnectOptions[src]

impl ConnectOptions for MySqlConnectOptions[src]

impl ConnectOptions for PgConnectOptions[src]

impl ConnectOptions for SqliteConnectOptions[src]

Loading content...