You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Most sqlx libs doesn't seem to implement AnyPool but rather SqlitePool or PgPool. This makes my code which use AnyPool incompatible with the external libraries.
Describe the solution you'd like
From is implemented for AnyConnection. Is it possible to do the same for AnyPool? Would also be good to have try_into() so AnyPool can be can be converted to SqlitePool, PgPool or error out.
Describe alternatives you've considered
Need to use Pool so Connection alone is not enough.
Is your feature request related to a problem? Please describe.
Most sqlx libs doesn't seem to implement
AnyPool
but ratherSqlitePool
orPgPool
. This makes my code which useAnyPool
incompatible with the external libraries.Describe the solution you'd like
From is implemented for
AnyConnection
. Is it possible to do the same forAnyPool
? Would also be good to havetry_into()
soAnyPool
can be can be converted toSqlitePool
,PgPool
or error out.Describe alternatives you've considered
Need to use Pool so
Connection
alone is not enough.Additional context
Example use case: ZeroAssumptions/aide-de-camp#11, casbin-rs/sqlx-adapter#77. It wouldn't scale to ask every libraries to support
AnyPool
.The text was updated successfully, but these errors were encountered: