Commit Graph

  • 5f4d9b3290 Extract columns_sql local more generally in #import_without_validations_or_callbacks. This is DRY-er, more consistent between the supports_import? cases and enables us to inline #quote_column_names Ben Woosley 2010-11-16 23:22:10 -0800
  • 6b2153a841 Simplify values_sql_for_column_names_and_attributes with #map Ben Woosley 2010-11-16 23:17:34 -0800
  • 7aefcf1164 Inline multiple_value_sets_insert_sql because it never changes, isn't particularly well-factored, and for parity with "not supports_import?" Ben Woosley 2010-11-16 23:14:28 -0800
  • 2ada56f858 Avoid N << method calls in #import_without_validations_or_callbacks by chaining #map (is simpler, should be more performant, AFAIK) Ben Woosley 2010-11-16 23:09:15 -0800
  • fff00af942 Don't initialize options[:on_duplicate_key_update] if the adapter doesn't #supports_on_duplicate_key_update? Ben Woosley 2010-11-16 23:03:30 -0800
  • b3dda82c10 :check_dependencies task isn't provided by Jeweler when a Gemfile is around. See: https://github.com/technicalpickles/jeweler/blob/master/lib/jeweler/tasks.rb Ben Woosley 2010-11-16 22:42:32 -0800
  • 0bbc24ba38 Keep test/database.yml out of the project so others can keep their own around Ben Woosley 2010-11-16 22:39:37 -0800
  • b1c73ffac2 Update test/database.yml.sample from test/database.yml Ben Woosley 2010-11-16 22:39:06 -0800
  • 7f1e4b4a4b Discriminate between ruby 1.9 and 1.8 in the bundle so we don't blow up on ruby-debug Ben Woosley 2010-11-16 22:13:07 -0800
  • 3a91f37c2a Updating Gemfile to include rake so it works with rvm and bundler without complaint v0.2.4 Zach Dennis 2011-01-05 19:12:48 -0500
  • f8a30f4665 Version bump to 0.2.4 Zach Dennis 2011-01-05 19:11:09 -0500
  • 8fbf841fde Use ActiveRecord Column#type_cast to properly parse fields represented by a string. Zach Dennis 2011-01-05 19:05:31 -0500
  • 8e266f74f7 Version bump to 0.2.3 v0.2.3 Zach Dennis 2010-11-03 10:50:18 -0400
  • e873a4aea2 No longer support 3.0.0rc, force rails ~> 3.0.0. Resolves dependency issue where gem was installing activesupport and activemodel 3.0.0rc versions even when 3.0.0 or 3.0.1 were installed Zach Dennis 2010-11-03 10:55:20 -0400
  • fdb3dc9578 Version bump to 0.2.2 v0.2.2 Zach Dennis 2010-10-05 22:38:31 -0400
  • 6c9cbc096c Updatin to not depend on Rails 3, only ActiveRecord, both in gem file and in tests Zach Dennis 2010-10-05 22:32:55 -0400
  • 142a61aaa9 Version bump to 0.2.1 v0.2.1 Zach Dennis 2010-10-05 11:28:48 -0400
  • 6783a34902 Updating Gemfile to work with Rails 3.0.0rc and 3.0.0 or higher. Zach Dennis 2010-10-05 11:07:29 -0400
  • 5fa9b93003 Updating MySQL import tests to load files in a ruby1.9 friendly way. Zach Dennis 2010-09-26 22:10:12 -0400
  • 66a80d54ae Version bump to 0.2.0 v0.2.0 Zach Dennis 2010-09-26 17:08:28 -0400
  • cb542a86f4 Updated how activerecord-import loads so it is done after a connection is established in ActiveRecord. This supports loading import for multiple adapters automatically w/o having to have a person require those specifically. Zach Dennis 2010-09-26 20:47:27 -0400
  • 6c6a0d22b9 Updating Gemfile to require jeweler and rakefile to use Bundler to ensure dependencies are installed. Zach Dennis 2010-09-26 20:46:02 -0400
  • 163f5c64be Deprecating usage of "require 'activerecord-import/<adapter_name>'" in favor of "require 'activerecord-import'". Zach Dennis 2010-09-26 17:06:37 -0400
  • 90057c43eb Renaming ActiveRecord::Extensions to ActiveRecord::Import. Zach Dennis 2010-09-26 17:05:02 -0400
  • 948dec0be2 Refactoring to allow for separation of activerecord-import code and activerecord's connection adapters. Zach Dennis 2010-09-26 16:51:19 -0400
  • b6c72f8456 Providing support for the Mysql2 adapter. Zach Dennis 2010-09-26 16:03:48 -0400
  • f61eabda19 Updating README to point to wiki Zach Dennis 2010-08-21 12:44:48 -0400
  • 83c3dedf96 Bump version to 0.1.0. v0.1.0 Zach Dennis 2010-08-10 21:44:45 -0400
  • 81a4136a8d Updating README Zach Dennis 2010-08-10 21:44:35 -0400
  • 42175ca94a Initial work for re-packaging as gem. Victor Costan 2010-07-06 12:40:02 -0400
  • 3820a5cdb6 Updated gem versions, specifically Rails 3 to be the latest rc candidate. Zach Dennis 2010-08-10 20:48:53 -0400
  • 24feb801f5 Updated how tests are run so Rake is not invoked twice. Zach Dennis 2010-08-10 20:47:55 -0400
  • fc7f179a34 Removed test.log and test.db from Git. Adding to gitignore. Zach Dennis 2010-08-10 20:47:26 -0400
  • e0dff4c055 Moved all adapter specific code into adapters/ directory and updated all adapters to utilize the same "require_adapter" method of loading specific-database adapters. Zach Dennis 2010-08-10 20:46:32 -0400
  • 4fcfa7fd14 Restructuring directories. Zach Dennis 2010-06-26 15:37:23 -0400
  • 5c287f1042 Added back in basic benchmark support. To run: ruby benchmark/benchmark.rb --adapter mysql --num 1000 ruby benchmark/benchmark.rb --adapter mysql --num 1000 --to-csv /tmp/results.csv ruby benchmark/benchmark.rb --adapter mysql --num 1000 --to-html /tmp/results.html Zach Dennis 2010-04-08 23:12:28 -0400
  • 369a5e0e64 Adding a README file. Zach Dennis 2010-04-08 22:13:55 -0400
  • 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'" Zach Dennis 2010-04-08 20:57:10 -0400
  • 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. Zach Dennis 2010-03-13 22:01:01 -0500
  • e8271778b7 About 85% through porting over MySQL on duplicate key functionality. Zach Dennis 2010-03-13 21:33:03 -0500
  • 5836e449fd Removing unnecessary logger creation. Zach Dennis 2010-03-13 20:26:17 -0500
  • 459aeb6fee Updated Rakefile and test_helper to work with more adapters than just sqlite3. Zach Dennis 2010-03-13 20:20:55 -0500
  • 61c1af6520 Moving unnecessary puts statement. Zach Dennis 2010-03-13 20:20:32 -0500
  • d4c120497e Minor refactoring. Zach Dennis 2010-03-13 20:20:23 -0500
  • 7a3850a7c8 Fixed bug in generic import test. Zach Dennis 2010-03-13 20:19:46 -0500
  • 5c5bd5f716 Implemented tests for #get_value_insert_sets. Zach Dennis 2010-03-12 00:04:15 -0500
  • db173ef907 Implementing the majority of generic #import tests. Zach Dennis 2010-03-11 23:52:16 -0500
  • ca5f83e1cf Initial commit of making ar-extensions import Rails 3 friendly Zach Dennis 2010-02-25 22:53:30 -0500