jbr / async-sqlx-session

30 stars 27 forks source link

Publish new version to crates.io #27

Open Rigellute opened 2 years ago

Rigellute commented 2 years ago

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?

bbstilson commented 1 year 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 {
    |            ^^^^^^^^^^^
Outurnate commented 1 year ago

Bumping as well - same issue as above

dignifiedquire commented 1 year ago

this would be great, need the support for sqlx@0.6

rogusdev commented 1 year ago

Multiple PRs open for this, just need them merged https://github.com/jbr/async-sqlx-session/pulls @jbr