-
Notifications
You must be signed in to change notification settings - Fork 157
Closed
Description
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 😄
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels