async-sqlx-session
async-sqlx-session copied to clipboard
cannot differientate between sqlx::postgres::PgPool and sqlx_core::postgres::PgPool in from_client
The issue im having is that I am trying to pass in a Pool<Postgres> object to the PostgresSessionStore::from_client(pool) and it gives me an issue of mismatched types Pool<Postgres> and Pool<Postgres> I am using the latest version of all, slqx = 0.7.1 and async-sqlx-session = 0.4.0 if you have any fixes let me know
Can you just specify the correct Pool type to use in your code? I.e. use lib1::Pool as Pool1
and use lib2::Pool as Pool2
and make sure you are passing the correct Pool1 or Pool2 into this function.
Note that per the docs: https://docs.rs/async-sqlx-session/latest/async_sqlx_session/struct.PostgresSessionStore.html#method.from_client the correct Pool object is sqlx::PgPool
which is itself just an alias for a generic type per https://docs.rs/sqlx/latest/sqlx/type.PgPool.html