Class: BulkInsert::StatementAdapters::BaseAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/bulk_insert/statement_adapters/base_adapter.rb

Instance Method Summary collapse

Constructor Details

#initializeBaseAdapter

Returns a new instance of BaseAdapter.



4
5
6
# File 'lib/bulk_insert/statement_adapters/base_adapter.rb', line 4

def initialize
  raise "You cannot initialize base adapter" if self.class == BaseAdapter
end

Instance Method Details

#insert_ignore_statementObject



8
9
10
# File 'lib/bulk_insert/statement_adapters/base_adapter.rb', line 8

def insert_ignore_statement
  raise "Not implemented"
end

#on_conflict_statement(_columns, _ignore, _update_duplicates) ⇒ Object



12
13
14
# File 'lib/bulk_insert/statement_adapters/base_adapter.rb', line 12

def on_conflict_statement(_columns, _ignore, _update_duplicates)
  raise "Not implemented"
end

#primary_key_return_statement(_primary_key) ⇒ Object



16
17
18
# File 'lib/bulk_insert/statement_adapters/base_adapter.rb', line 16

def primary_key_return_statement(_primary_key)
  raise "Not implemented"
end