You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,16 +55,17 @@ Tool | Description
55
55
--------------------- | -----------
56
56
:back |resource action to redirect after processing
57
57
:csv_options |hash with column separator, row separator, etc
58
-
:validate |bool means perform validations or not
58
+
:validate |bool (true by default), perform validations or not
59
+
:batch_transaction |bool (false by default), if transaction is used when batch importing and works when :validate is set to true
59
60
:batch_size |integer value of max record count inserted by 1 query/transaction
60
-
:batch_transaction |bool (false by default), if transaction is used when batch importing and works when :validate is set to true
61
61
:before_import |proc for before import action, hook called with importer object
62
62
:after_import |proc for after import action, hook called with importer object
63
63
:before_batch_import |proc for before each batch action, called with importer object
64
64
:after_batch_import |proc for after each batch action, called with importer object
65
-
:on_duplicate_key_update|an Array or Hash, tells activerecord-import to use MySQL's ON DUPLICATE KEY UPDATE or Postgres 9.5+ ON CONFLICT DO UPDATE ability.
65
+
:on_duplicate_key_update|an Array or Hash, tells activerecord-import to use MySQL's ON DUPLICATE KEY UPDATE or Postgres 9.5+/SQLite 3.24.0+ ON CONFLICT DO UPDATE ability
66
+
:on_duplicate_key_ignore|bool, tells activerecord-import to use MySQL's INSERT IGNORE or Postgres 9.5+ ON CONFLICT DO NOTHING or SQLite's INSERT OR IGNORE ability
67
+
:ignore |bool, alias for on_duplicate_key_ignore
66
68
:timestamps |bool, tells activerecord-import to not add timestamps (if false) even if record timestamps is disabled in ActiveRecord::Base
67
-
:ignore |bool, tells activerecord-import to use MySQL's INSERT IGNORE ability
0 commit comments