Commits on Apr 6, 2011
  1. Version bump to 0.2.6

    committed Apr 6, 2011
  2. Version bump to 0.3.0

    committed Apr 6, 2011
  3. Added :synchronize_keys to the import options so importing can synchr…

    …onize on fields beside the primary key.
    committed Apr 6, 2011
Commits on Mar 19, 2011
  1. Adding in support for :synchronization option for #import. Pulled in …

    …from ar-extensions. Currently only works with MySQL since that is the only database that supports on duplicate key update functionality.
    committed Mar 19, 2011
  2. Turning off warnings because FactoryGirl spews out crap and it makes …

    …it impossible to see anything useful.
    committed Mar 19, 2011
Commits on Jan 12, 2011
  1. Version bump to 0.2.5

    committed Jan 12, 2011
Commits on Jan 11, 2011
  1. Renamed #values_sql_for_column_names_and_attributes to #values_sql_fo…

    …r_columns_and_attributes and cleaned up how it dealt with columns.
    * added back in the support for type-casting based on the database column
    * removed unused method in ActiveRecord::Import::AbstractAdapter
    committed Jan 11, 2011
  2. Simplify validations_arry_for_column_names_and_attributes with map, e…

    …ach_with_index and Hash.
    Hash[] would be much clearer, but would leave nil values for missing attributes which doesn't match the existing behavior.
    Empact committed with Nov 17, 2010
  3. Consolidate insert_sql between supports_import? cases so both make us…

    …e of options[:ignore]
    Empact committed with Nov 17, 2010
  4. Reinstate the deleting of the :validate option - not because it was c…

    …ausing trouble, but to be a bit paranoid (reverts 63d6fae)
    Empact committed with Nov 17, 2010
  5. Fix that values_sql_for_attributes wasn't accessing the columns with …

    …the same indexes as the array_of_attributes, and so was sometime mismatched.
    Also return to the column_names[j] == primary_key style of testing, as the column itself is not always present
    Empact committed with Nov 17, 2010
  6. Codify import results in a Struct rather than OpenStruct, as it's a f…

    …aster, more rigid structure
    Empact committed with Nov 17, 2010
  7. #dup array_of_attributes a bit earlier - there's no point in duping t…

    …he primary_key nulls we might put in next
    Empact committed with Nov 17, 2010
  8. Refactor remaining supports_import? split to share code in values_sql…

    …_for_column_names_and_attributes. This means both with properly support sequences.
    Rather than pass a ton of variables (sequence_name, columns, column_names, &c.), move the method out of the connection.  Also, use Column#primary to check primary key status.
    Empact committed with Nov 17, 2010
  9. Extract columns_sql local more generally in #import_without_validatio…

    …ns_or_callbacks. This is DRY-er, more consistent between the supports_import? cases and enables us to inline #quote_column_names
    Empact committed with Nov 17, 2010
  10. Inline multiple_value_sets_insert_sql because it never changes, isn't…

    … particularly well-factored, and for parity with "not supports_import?"
    Empact committed with Nov 17, 2010
  11. Avoid N << method calls in #import_without_validations_or_callbacks b…

    …y chaining #map (is simpler, should be more performant, AFAIK)
    Empact committed with Nov 17, 2010
  12. Don't initialize options[:on_duplicate_key_update] if the adapter doe…

    …sn't #supports_on_duplicate_key_update?
    Empact committed with Nov 17, 2010