Sha256: 90b2a277996e59219b8ac476cb877ba50cdbef97d9bc934312e5ebe21ef37cd4

Contents?: true

Size: 198 Bytes

Versions: 4

Compression:

Stored size: 198 Bytes

Contents

module DirtyPipeline
  module PG
    module_function
    def multi(pg_result)
      pg_result.first&.values
    end

    def single(pg_result)
      pg_result.first&.values&.first
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dirty_pipeline-0.9.0 lib/dirty_pipeline/pg.rb
dirty_pipeline-0.8.3 lib/dirty_pipeline/pg.rb
dirty_pipeline-0.8.2 lib/dirty_pipeline/pg.rb
dirty_pipeline-0.8.1 lib/dirty_pipeline/pg.rb