diff --git a/Rakefile b/Rakefile index 38f7d17..ff42901 100644 --- a/Rakefile +++ b/Rakefile @@ -36,7 +36,7 @@ namespace :display do end task :default => ["display:notice"] -ADAPTERS = %w(mysql mysql2 jdbcmysql postgresql sqlite3) +ADAPTERS = %w(mysql mysql2 jdbcmysql postgresql sqlite3 seamless_database_pool) ADAPTERS.each do |adapter| namespace :test do desc "Runs #{adapter} database tests." diff --git a/lib/activerecord-import/active_record/adapters/seamless_database_pool_adapter.rb b/lib/activerecord-import/active_record/adapters/seamless_database_pool_adapter.rb index 39391cb..388c618 100644 --- a/lib/activerecord-import/active_record/adapters/seamless_database_pool_adapter.rb +++ b/lib/activerecord-import/active_record/adapters/seamless_database_pool_adapter.rb @@ -1,3 +1,4 @@ +require "seamless_database_pool" require "active_record/connection_adapters/seamless_database_pool_adapter" require "activerecord-import/adapters/mysql_adapter" diff --git a/test/adapters/mysql2.rb b/test/adapters/mysql2.rb index 0ddab79..e67530f 100644 --- a/test/adapters/mysql2.rb +++ b/test/adapters/mysql2.rb @@ -1 +1 @@ -ENV["ARE_DB"] = "mysql2" \ No newline at end of file +ENV["ARE_DB"] = "mysql2" diff --git a/test/adapters/seamless_database_pool.rb b/test/adapters/seamless_database_pool.rb new file mode 100644 index 0000000..1f4a8b3 --- /dev/null +++ b/test/adapters/seamless_database_pool.rb @@ -0,0 +1 @@ +ENV["ARE_DB"] = "seamless_database_pool" diff --git a/test/database.yml.sample b/test/database.yml.sample index 6e0c4ee..6a9a364 100644 --- a/test/database.yml.sample +++ b/test/database.yml.sample @@ -13,6 +13,13 @@ mysql2: <<: *common adapter: mysql2 +seamless_database_pool: + <<: *common + adapter: seamless_database_pool + pool_adapter: mysql2 + master: + host: localhost + postgresql: <<: *common username: postgres