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 pipeline support #253

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Commits on Jul 2, 2022

  1. Configuration menu
    Copy the full SHA
    ef9d4dc View commit details
    Browse the repository at this point in the history
  2. Add support for query pipelining

    To use from a connection:
    
        result_sets = pg.pipeline do |pipe|
          pipe.query "SELECT 42"
          pipe.query "SELECT * FROM posts LIMIT $1", limit
        end
        result_sets.scalar(Int32) # => 42
        result_sets.read_all(Post) # => [Post(@id=1, ...), ...]
    
    WARNING: This commit does not ensure that all result sets are fully
    consumed.
    jgaskins committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    f82e5e5 View commit details
    Browse the repository at this point in the history