pub async fn new(database_str: &str, features: BitFlags<MigrationFeature>) -> ConnectorResult<Self> {
        let connection = connect(database_str).await?;
        let flavour = flavour::from_connection_info(connection.connection_info(), features);

        flavour.ensure_connection_validity(&connection).await?;

        Ok(Self { flavour, connection })
    }
/// Construct and initialize the SQL migration connector.
Construct and initialize the SQL migration connector.
Construct and initialize the SQL migration connector .
pub async fn new(database_str: &str, features: BitFlags<MigrationFeature>) -> ConnectorResult<Self> {
        let connection = connect(database_str).await?;
        let flavour = flavour::from_connection_info(connection.connection_info(), features);
        flavour.ensure_connection_validity(&connection).await?;
        Ok(Self { flavour, connection })
    }
pub async fn new ( database_str : & str , features : BitFlags < MigrationFeature > ) -> ConnectorResult < Self > { let connection = connect ( database_str ) . await ? ; let flavour = flavour :: from_connection_info ( connection . connection_info ( ) , features ) ; flavour . ensure_connection_validity ( & connection ) . await ? ; Ok ( Self { flavour , connection } ) }
Construct and initialize the SQL migration connector.
Construct and initialize the SQL migration connector .
database_str
&str
features
BitFlags<MigrationFeature>
database_str
&str
features
BitFlags<MigrationFeature>