Open Rigellute opened 2 years ago
Bumping 🙂
This mismatch causes a compilation error:
let pool: PgPool = PgPoolOptions::new()
.connect(&config.database_url)
.await
.expect("Database could not connect.");
let session_store = PostgresSessionStore::from_client(pool);
note: struct `Pool` is defined in crate `sqlx_core`
--> /home/bbstilson/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.6.3/src/pool/mod.rs:244:1
|
244 | pub struct Pool<DB: Database>(pub(crate) Arc<PoolInner<DB>>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: struct `sqlx_core::pool::Pool` is defined in crate `sqlx_core`
--> /home/bbstilson/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.5.13/src/pool/mod.rs:235:1
|
235 | pub struct Pool<DB: Database>(pub(crate) Arc<SharedPool<DB>>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `sqlx_core` are being used?
note: associated function defined here
--> /home/bbstilson/.cargo/registry/src/github.com-1ecc6299db9ec823/async-sqlx-session-0.4.0/src/pg.rs:49:12
|
49 | pub fn from_client(client: PgPool) -> Self {
| ^^^^^^^^^^^
Bumping as well - same issue as above
this would be great, need the support for sqlx@0.6
Multiple PRs open for this, just need them merged https://github.com/jbr/async-sqlx-session/pulls @jbr
I see that sqlx was updated here https://github.com/jbr/async-sqlx-session/commit/3f2e1cfbad766926d387be70462e36d5794a243b
Would you be able to publish a new version to crates.io with this upgrade please?