-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a r2d2::CustomizeConnection
for testing
#4152
Comments
I would love to take on this issue. It would be my first in Here's where I am at:
|
Thanks for working on this.
That's correct
It can use the default implementation. And to answer the question from the Gitter channel:
I imagine to just extend the documentation at the linked location. That means:
|
Understood. Thanks a lot for the clarifications and the pointers! |
The r2d2 pooling crate provides hooks to customize connections on checkout from the pool. Diesel should provide a struct that implements CustomizeConnection by calling
Connection::begin_test_transaction
to simplify the pooling setup for integration tests. In addition we might want to extend the documentation in the diesel r2d2 module to include information about how to setup the pool for integration tests.This involves the following steps:
TestCustomizer<C>
type to ther2d2
moduleConnection::begin_test_transaction
in theon_acquire
functionChangelog.md
file in the repository rootThe text was updated successfully, but these errors were encountered: