Class: StandardBatchInsert
- Includes:
- FromHash
- Defined in:
- lib/dataload/batch_insert.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#rows ⇒ Object
Returns the value of attribute rows.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
Instance Method Summary collapse
Instance Attribute Details
#rows ⇒ Object
Returns the value of attribute rows.
3 4 5 |
# File 'lib/dataload/batch_insert.rb', line 3 def rows @rows end |
#table_name ⇒ Object
Returns the value of attribute table_name.
3 4 5 |
# File 'lib/dataload/batch_insert.rb', line 3 def table_name @table_name end |
Instance Method Details
#insert! ⇒ Object
14 15 16 |
# File 'lib/dataload/batch_insert.rb', line 14 def insert! ActiveRecord::Base.connection.execute(insert_sql) end |