New database integration with Rails


#1

What would be involved in adding a new Database implementation to
Rails? We have a JDBC implementation that connects to a new Daabase
type that we want to use behind Rails.

I assume we need to build a “Migration” class(s) to tie to
ActiveRecord similar to the MySql “Migration” integration. If so
where in the source tree can we find examples?

Is there another way?

Ollie


#2

Excellent, just what I was looking for.

Ollie

On Sun, Dec 7, 2008 at 7:02 AM, Ollie removed_email_address@domain.invalid wrote:

Ollie


Michael Oliver
CTO, Corent Technology Inc.
3600 W Florida Ave, #340
Hemet, CA, 92545
ph:949-547-5700


#3

On Dec 7, 3:02 pm, Ollie removed_email_address@domain.invalid wrote:

What would be involved in adding a new Database implementation to
Rails? We have a JDBC implementation that connects to a new Daabase
type that we want to use behind Rails.

I assume we need to build a “Migration” class(s) to tie to
ActiveRecord similar to the MySql “Migration” integration. If so
where in the source tree can we find examples?

You need to write a connection adapter. You can see the bundled ones
at
http://github.com/rails/rails/tree/master/activerecord/lib/active_record/connection_adapters

Is there another way?

Jruby already has a JDBC connection adapter for rails, maybe you can
piggyback on top of that ?

Fred