pub async fn connect_with(
        options: &<DB::Connection as Connection>::Options,
    ) -> Result<Self, sqlx::Error> {
        Ok(Self {
            options: MigratorOptions::default(),
            conn: DB::Connection::connect_with(options).await?,
            table: Cow::Borrowed(DEFAULT_MIGRATIONS_TABLE),
            migrations: Vec::default(),
        })
    }
/// Connect to a database with the given connection options.
///
/// # Errors
///
/// An error is returned on connection failure.
Connect to a database with the given connection options.
Connect to a database with the given connection options .
pub async fn connect_with(
        options: &<DB::Connection as Connection>::Options,
    ) -> Result<Self, sqlx::Error> {
        Ok(Self {
            options: MigratorOptions::default(),
            conn: DB::Connection::connect_with(options).await?,
            table: Cow::Borrowed(DEFAULT_MIGRATIONS_TABLE),
            migrations: Vec::default(),
        })
    }
pub async fn connect_with ( options : & < DB :: Connection as Connection > :: Options , ) -> Result < Self , sqlx :: Error > { Ok ( Self { options : MigratorOptions :: default ( ) , conn : DB :: Connection :: connect_with ( options ) . await ? , table : Cow :: Borrowed ( DEFAULT_MIGRATIONS_TABLE ) , migrations : Vec :: default ( ) , } ) }
Connect to a database with the given connection options.
Connect to a database with the given connection options .
options
&<DB::Connection as Connection>::Options
options
&<DB::Connection as Connection>::Options
errors
An error is returned on connection failure.
An error is returned on connection failure .