rust-postgres: What the reason why tokio_postgres::Client is not deriveing Clone?
Is any specific reason why it not deriveing Clone?:
pub struct Client(proto::Client);
Note: proto::Client is clonable;
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (9 by maintainers)
Wait, if that is an issue, how is the current TransactionBuilder not exactly this undesired interleaving of transactions? Multiple Tasks can each construct a TransactionBuilder and then submit their Future simultaneously.
Would such transactions interleave or one be serialized by the connection? I’m not sure from reading the transaction state machine…
I think that could work, definitely. Interested in writing it up in a PR?