> From another point ov view: also today different database adapters depend on
> external libraries (typically gems) to handle the lower levels i.e. also for
> rails 1.2, with the oracle adapter *in the core* you still need to install
> the oci gem to be able to connect (with platform specific code), the same
> goes for the mysql adapter if you want to use the native libs, and so on for
> the others.
> This make me think that in the end we may even let the adapters live in
> plugins and let the user specify them on application creation (in addition
> to being able to add them with the usual script/plugin install).
>
>  # rails --with-adapter=oracle ...

The only difference I would say there is between having to load the
libraries and having to load the adapters as plugins is that you only
need to load the library once per machine, whereas you would need to
load the adapter as a plugin for every rails app.  Having the
generator do some of this for you would be nice, but we will still
lose the ability to easily change databases by simply changing
database.yml and running a rake task.  Now you will also have to make
sure you install the proper plugin when you change databases.  We can
argue that this doesn't happen often, but still it is a convenience
that will be lost.

What about those developers who like to use SQLite for the development
environment, but use something else for testing and production?  I
think it comes down to convience, and it's not inconvenient to have to
load something once during installation, but it might be considered
inconvenient to have to load it everytime you start a project or
change databases.  Perhaps the answer would be to have rails load the
adapters as gems, but not have the gems installed along with rails.
You can load the proper adapter gem at the same time you load the
corresponding library gem, and then it's available to whatever project
may need or want it.

-Derrick

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to