Sha256: ee8a18a67aedb18b7aeab048503bf76289f11da8153939bb90761f2d9c7aff69

Contents?: true

Size: 263 Bytes

Versions: 4

Compression:

Stored size: 263 Bytes

Contents

# frozen_string_literal: true

module SQLRunner
  class Query
    module Many
      def self.activate(target, _options)
        target.singleton_class.prepend self
      end

      def call(**bind_vars)
        super(**bind_vars).to_a
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sql_runner-0.4.1 lib/sql_runner/query/many.rb
sql_runner-0.4.0 lib/sql_runner/query/many.rb
sql_runner-0.3.0 lib/sql_runner/query/many.rb
sql_runner-0.2.0 lib/sql_runner/query/many.rb