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

[Merged by Bors] - sql: add Database.WithConnection #6445

Closed
wants to merge 4 commits into from

Commits on Nov 11, 2024

  1. sql: add Database.Connection/WithConnection, interface cleanup

    This adds a possibility to take a connection from the pool to use it
    via the Executor interface, and return it later when it's no longer
    needed. This avoids connection pool overhead in cases when a lot of
    quries need to be made, but the use of read transactions is not
    needed.
    
    Using read transactions instead of simple connections has the side
    effect of blocking WAL checkpoints.
    ivan4th committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    ca2d5c6 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2024

  1. Configuration menu
    Copy the full SHA
    bb31cc6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3e5a401 View commit details
    Browse the repository at this point in the history
  3. sql: fix comment

    ivan4th committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    571a53e View commit details
    Browse the repository at this point in the history