-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Get the PoolOptions
from Pool
#1853
Comments
Hey! I currently have the same issue, but it's a bit more convoluted. We have a quite sophisticated test setup, where we create a SQLx The idea is to now remove the respective test database for each test once it finished. To achieve this, we would have to pass the database URL through all fixtures, into the function and to the cleanup function, so we can know which DB to delete. The most ergonomic way would definitely be to just get the If this is something you could imagine, I would be happy to open a PR. |
@Nukesor I haven't had a response in over a month, so maybe the best way forward is to open a pr and see how the maintainers react to that. 👍 |
Closed by #1897 (there was some confusion as to whether that PR addressed this or not but the final version does.) |
Title says it all, would it be possible to get the
PoolOptions
fromPool
as it's stored inSharedPool
.My use case is that we need to create a new pool with the same options from an existing pool. We currently pass along the connection options, but since
Pool
already holds the options might as well use it.The text was updated successfully, but these errors were encountered: