Greg Donald wrote: > And look at the mail archives for all the beginners struggling to > figure out how to get sqlite, and ruby-sqlite running on their > systems, it's not like replacing mysql with sqlite gave them less to > install or less issues overall. Seems to me they were trying to solve > non-problems with the sqlite move. Any serious developer will already > have a favorite db up and running, spec'd by his phb or otherwise, and > I'd say it's never sqlite by default.
I take it you're not developing on a Mac. :-) I don't entirely disagree with you on this point, but the fact remains that a huge percentage of Rails developers are on the Mac. On the Mac SQLite is installed and ready to use, along with Rails, and ruby-sqlite. SQLite is used in several other areas on the Mac; 1: Persistent store for Core Data, 2: HTML 5 local storage used by WebKit, etc. What I'm saying is that from this perspective, on this platform, it does actually make sense to use SQLite as the default. It's the easy choice to make it the default, because there's no bickering between whether the default should be MySQL or PostreSQL for instance. The other advantage of having SQLite as the default is that there is zero configuration necessary when creating a new Rails app. This is great for quick prototypes. rails my_proj cd my_proj ./script/generate model MyModel name:string rake db:migrate ./script/server Zero database configuration. No username/password setup, no rake db:create. It just works. I don't believe anyone expects SQLite to be use as the production database, including the Rails core team who chose to use SQLite as the default. It's dead simple to skip the whole SQLite thing: rails my_proj --database=mysql It makes sense to specify what "other" database server you want when creating a new project. If you specify it, chances are that you've done the work to install and configure it for use. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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-talk?hl=en -~----------~----~----~----~------~----~------~--~---

