database uri for database.yml

Proposed alternative:

production:   uri: postgres://username:password@database.host.com:5432/production_db   pool: 5

Alternative:

production: "postgres://username:password@database.host.com:5432/production_db?pool=5"

Robert Pankowecki

What makes that solution better than the current (more readable) version?

It is less verbose I guess. Also java, .net and mongo use/support connection strings.

Robert Pankowecki

I like it. Heroku does this too.

I *think* this is supported now, just not specifically tested. If it doesn't actually work, then we should make it work.

Hi, Aaron,

I can’t find any information for that. How can I specify uri?

在 2012年9月25日星期二UTC+8上午1时56分07秒,Aaron Patterson写道: