Skip to content

Refinery not compatible anymore with mysql_async 0.32.0 #276

@sagoez

Description

@sagoez

Minimalist version of the code in place

let db_string = std::env::var("DATABASE_URL").expect("DATABASE_URL must be set");

    let opts = mysql_async::Opts::from_url(&db_string).unwrap();

    let opts = OptsBuilder::from_opts(opts).wait_timeout(Some(4));

    let pool = Pool::new(opts);

    let migration_report = embedded::migrations::runner()
        .run_async(&mut pool)
        .await?;

Compiler output:

Diagnostics:
1. the trait bound `mysql_async::Pool: refinery::AsyncMigrate` is not satisfied
   the following other types implement trait `refinery::AsyncMigrate`:
     mysql_async::conn::pool::Pool
     refinery::config::Config [E0277]
2. required by a bound introduced by this call [E0277]

I'd be happy to submit a PR to update the dependency and fix this 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions