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
no method named `build_transaction` found for mutable reference `&mut PooledConnection<ConnectionManager<AsyncConnectionWrapper<AsyncPgConnection, Tokio>>>` in the current scope
Given that this used to work when this code was just using the PgConnection from Diesel directly, and AsyncPgConnection itself implements build_transaction, I can only assume the issue lies with AsyncConnectionWrapper not exposing it properly.
What are you trying to accomplish?
Use Diesel without relying on libpq.
What is the expected output?
The code should compile an work happily (assuming I use spawn_blocking).
What is the actual output?
The compilation error above.
Are you seeing any additional errors?
Nup. Though it's quite hard to figure out what's meant to be supported. This crate purportedly supports bb8 for example but it doesn't work for AsyncConnectionWrapper. r2d2 does (maybe, pending this fix) but it isn't documented that r2d2 is supported.
Setup
Versions
Feature Flags
Problem Description
I have the following types defined:
and this function to get a pool:
This all compiles fine.
When I try to use my
PgPoolConnection
connection however, like this:I get this error:
Given that this used to work when this code was just using the PgConnection from Diesel directly, and AsyncPgConnection itself implements
build_transaction
, I can only assume the issue lies withAsyncConnectionWrapper
not exposing it properly.What are you trying to accomplish?
Use Diesel without relying on libpq.
What is the expected output?
The code should compile an work happily (assuming I use spawn_blocking).
What is the actual output?
The compilation error above.
Are you seeing any additional errors?
Nup. Though it's quite hard to figure out what's meant to be supported. This crate purportedly supports bb8 for example but it doesn't work for AsyncConnectionWrapper. r2d2 does (maybe, pending this fix) but it isn't documented that r2d2 is supported.
Steps to reproduce
Checklist
closed if this is not the case)
The text was updated successfully, but these errors were encountered: