module BulkInsert::StatementAdapters
Public Class Methods
adapter_for(connection)
click to toggle source
# File lib/bulk_insert/statement_adapters.rb, line 8 def adapter_for(connection) case connection.adapter_name when /^mysql/i MySQLAdapter.new when /\APost(?:greSQL|GIS)/i PostgreSQLAdapter.new when /\ASQLite/i SQLiteAdapter.new else GenericAdapter.new end end
Private Instance Methods
adapter_for(connection)
click to toggle source
# File lib/bulk_insert/statement_adapters.rb, line 8 def adapter_for(connection) case connection.adapter_name when /^mysql/i MySQLAdapter.new when /\APost(?:greSQL|GIS)/i PostgreSQLAdapter.new when /\ASQLite/i SQLiteAdapter.new else GenericAdapter.new end end