Skip to content
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

Expose PoolOptions for reading #2113

Merged
merged 1 commit into from
Feb 4, 2023

Conversation

FSMaxB
Copy link
Contributor

@FSMaxB FSMaxB commented Sep 22, 2022

This allows reading back PoolOptions that have already been set.

My concrete use-case is querying the maximum connections from a context where I regularly collect application performance metrics from a PgPool. Currently I can only see how many connections there are and how many of them are active/idle, but in order to graph this against the totally available connections, I would have to pass through the initial configuration somehow. It's much easier to expose them from the PoolOptions directly.

@FSMaxB
Copy link
Contributor Author

FSMaxB commented Sep 22, 2022

Force pushed because apparently my branch was on top of the outdated master instead of main and I added get_acquire_timeout.

@FSMaxB FSMaxB force-pushed the read-pool-options branch 2 times, most recently from ea8c691 to c7282fe Compare September 22, 2022 11:26
@abonander
Copy link
Collaborator

@FSMaxB current development is on the 0.7-dev branch which just had some major refactors merged. Do you mind rebasing?

@FSMaxB FSMaxB changed the base branch from main to 0.7-dev February 2, 2023 08:06
This allows reading back PoolOptions that have already been set.
@FSMaxB
Copy link
Contributor Author

FSMaxB commented Feb 2, 2023

@FSMaxB current development is on the 0.7-dev branch which just had some major refactors merged. Do you mind rebasing?

@abonander done!

@abonander abonander merged commit 78f8dc1 into launchbadge:0.7-dev Feb 4, 2023
@FSMaxB
Copy link
Contributor Author

FSMaxB commented Feb 9, 2023

@abonander If 0.7 isn't just around the corner (which it doesn't look like), can this be backported to 0.6?
Note that the rebase I did basically cleanly applied without any conflict with the refactoring.

@FSMaxB FSMaxB deleted the read-pool-options branch February 9, 2023 08:49
abonander pushed a commit that referenced this pull request Feb 18, 2023
This allows reading back PoolOptions that have already been set.
abonander pushed a commit that referenced this pull request Feb 21, 2023
This allows reading back PoolOptions that have already been set.
Aandreba pushed a commit to Aandreba/sqlx that referenced this pull request Mar 31, 2023
This allows reading back PoolOptions that have already been set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants