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

Add example for wrapping PostgresConnectionManager #112

Merged
merged 1 commit into from
Oct 28, 2021

Commits on Oct 27, 2021

  1. Add example for wrapping PostgresConnectionManager to add state

    With this example we show how easy it is to wrap the postgres connection
    pool to prepare several queries when a connection is created. Then, once
    a connection is checked out, this examples shows how easy it is to use
    the custom state to pull a prepared statement.
    
    Inspired by djc#110 which requests this kind of behavior in bb8 directly,
    but for now it's easy to extend any connection manager with your custom
    needs.
    film42 committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    6547228 View commit details
    Browse the repository at this point in the history