diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-18 16:50:25 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-18 16:50:25 +0000 |
commit | 416385a09d61758ba8e2b2ff30dd64c8b9540883 (patch) | |
tree | bfde9d62eb6d748100714f1bb1820f6f827c5506 /activerecord/test/connections | |
parent | 240213177eba35921f9ee621e8865311b94f6d21 (diff) | |
download | rails-416385a09d61758ba8e2b2ff30dd64c8b9540883.tar.gz rails-416385a09d61758ba8e2b2ff30dd64c8b9540883.tar.bz2 rails-416385a09d61758ba8e2b2ff30dd64c8b9540883.zip |
Added OpenBase database adapter that builds on top of the http://www.spice-of-life.net/ruby-openbase/ driver. All functionality except LIMIT/OFFSET is supported (closes #3528) [derrickspell@cdmplus.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3932 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/connections')
-rw-r--r-- | activerecord/test/connections/native_openbase/connection.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/activerecord/test/connections/native_openbase/connection.rb b/activerecord/test/connections/native_openbase/connection.rb new file mode 100644 index 0000000000..01a2ffe646 --- /dev/null +++ b/activerecord/test/connections/native_openbase/connection.rb @@ -0,0 +1,22 @@ +print "Using native OpenBase\n" +require_dependency 'fixtures/course' +require 'logger' + +ActiveRecord::Base.logger = Logger.new("debug.log") + +db1 = 'activerecord_unittest' +db2 = 'activerecord_unittest2' + +ActiveRecord::Base.establish_connection( + :adapter => "openbase", + :username => "admin", + :password => "", + :database => db1 +) + +Course.establish_connection( + :adapter => "openbase", + :username => "admin", + :password => "", + :database => db2 +) |