Sha256: d6644df11476b68dfa1d73028a5567284d9dc6f61bbc842e89d1aecd182fa933

Contents?: true

Size: 370 Bytes

Versions: 3

Compression:

Stored size: 370 Bytes

Contents

# frozen_string_literal: true

module DuckDB
  class ExtractedStatements < ExtractedStatementsImpl
    include Enumerable

    def initialize(con, sql)
      @con = con
      super(con, sql)
    end

    def each
      return to_enum(__method__) { size } unless block_given?

      size.times do |i|
        yield prepared_statement(@con, i)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
duckdb-1.1.3.1 lib/duckdb/extracted_statements.rb
duckdb-1.1.3.0 lib/duckdb/extracted_statements.rb
duckdb-1.1.2.1 lib/duckdb/extracted_statements.rb