Zach Dennis
7958ed18c2
Added :synchronize_keys to the import options so importing can synchronize on fields beside the primary key.
...
https://github.com/zdennis/activerecord-import/issues/16
2011-04-06 14:20:53 -04:00
Zach Dennis
32a2fe3bce
Adding a test to ensure that specified ids are being saved when imported.
...
https://github.com/zdennis/activerecord-import/issues#issue/4
2011-03-19 15:20:44 -04:00
Franck Verrot
d901a7c60f
Importing an empty array of objects/values should be supported
2011-03-19 15:11:28 -04:00
Zach Dennis
8fbf841fde
Use ActiveRecord Column#type_cast to properly parse fields represented by a string.
...
Fixed issued reported by Nick Burdick where imported datetime fields was not correctly working with certain string formats for MySQL which doesn't support MM/DD/YYYY format directly.
2011-01-05 19:09:55 -05:00
Victor Costan
42175ca94a
Initial work for re-packaging as gem.
2010-08-10 21:39:26 -04:00
Zach Dennis
3523138a7a
* Added basic import support for PostgreSQL.
...
* Requiring database adapter is now "require 'ar-extensions/import/<adapter_name>" so it won't conflict with previous versions of ar-extensions or other libraries extracted out of older ar-extensions, which "require 'ar-extensions'"
2010-04-08 20:57:10 -04:00
Zach Dennis
075104a944
Finished porting over MySQL import functionality.
...
* removed assertions on #num_inserts, that is db-specific and is handled in details by abstract_adapter_test.
2010-03-13 22:30:29 -05:00
Zach Dennis
7a3850a7c8
Fixed bug in generic import test.
2010-03-13 20:19:46 -05:00
Zach Dennis
5c5bd5f716
Implemented tests for #get_value_insert_sets.
2010-03-12 00:04:15 -05:00
Zach Dennis
db173ef907
Implementing the majority of generic #import tests.
2010-03-11 23:52:16 -05:00
Zach Dennis
ca5f83e1cf
Initial commit of making ar-extensions import Rails 3 friendly
2010-03-11 21:32:56 -05:00