API.md in row_boat-0.4.0 vs API.md in row_boat-0.5.0

- old
+ new

@@ -44,11 +44,11 @@ Imports database records form the given CSV-like object. The CSV-like object can be anything that can be passed to [`SmarterCSV.process`](https://github.com/tilo/smarter_csv#documentation) (string paths to files, files, tempfiles, instances of StringIO, etc). It returns a hash containing - `:invalid_records` - an array of all records that failed to import since they were invalid. If you've configured the `:validate` option to be `false` it will be an empty array. -- `:total_inserted` - the total number of records inserted into the database. +- `:total_inserts` - the total number of database inserts that were run. - `:inserted_ids` - an array of all of the ids of records inserted into the database. - `:skipped_rows` - every row skipped by returning `nil` from [`preprocess_row`](#preprocess_row). If you want to pass additional information to help import CSVs, *don't override this method*. It just passes through to [`initialize`](#initialize) so override that :) @@ -260,10 +260,10 @@ Whatever you define in this method will be merged into the defaults: - `:chunk_size` - `500` - `:key_mapping` - `column_mapping` - - `:recursive` - `true` + - `:recursive` - `false` - `:remove_unmapped_keys` - `true` - `:validate` - `true` - `:value_converters` - `csv_value_converters` - `:wrap_in_transaction` - `true`