Sha256: 2637eab673f358f129092a66ad5fea095a2dc0af3ed9de7a58253e6b37e162fb

Contents?: true

Size: 565 Bytes

Versions: 4

Compression:

Stored size: 565 Bytes

Contents

module Populator
  module Adapters
    module Oracle 

      # Executes SQL statements one at a time. 

      def populate(table, columns, rows, name = nil)
        rows.each do |row|
          sql = "INSERT INTO #{table} #{columns} VALUES #{row}"
          log(sql, name) do
            @connection.exec(sql)
          end
        end
      end

    end
  end
end

module ActiveRecord # :nodoc: all
  module ConnectionAdapters
    class OracleAdapter < ActiveRecord::ConnectionAdapters::AbstractAdapter
      include Populator::Adapters::Oracle
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
blahed-populator-0.2.4 lib/populator/adapters/oracle.rb
populator3-0.2.7 lib/populator/adapters/oracle.rb
populator3-0.2.6 lib/populator/adapters/oracle.rb
populator3-0.2.4 lib/populator/adapters/oracle.rb