Database URLs

activerecord databases datamapper sequel

Sun Sep 14 19:03:00 -0700 2008

DataMapper and Sequel both use urls for configuring database connections:

DataMapper.setup(:default, 'mysql://localhost/dm_core_test')
DB = Sequel.connect('postgres://cico:12345@localhost:5432/mydb')

I have the gut sense that this is better than the configuration hash approach of config/database.yml and ActiveRecord::Base.establish_connection.