Module: BulkInsert::StatementAdapters
- Defined in:
- lib/bulk_insert/statement_adapters.rb,
lib/bulk_insert/statement_adapters/base_adapter.rb,
lib/bulk_insert/statement_adapters/mysql_adapter.rb,
lib/bulk_insert/statement_adapters/sqlite_adapter.rb,
lib/bulk_insert/statement_adapters/generic_adapter.rb,
lib/bulk_insert/statement_adapters/postgresql_adapter.rb
Defined Under Namespace
Classes: BaseAdapter, GenericAdapter, MySQLAdapter, PostgreSQLAdapter, SQLiteAdapter
Class Method Summary collapse
Class Method Details
.adapter_for(connection) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# 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 |