caribou / caribou-core

Core functionality for Caribou
44 stars 3 forks source link

Pure db configuration function from configure-db #36

Closed fpoms closed 10 years ago

fpoms commented 10 years ago

configure-db-from-environment was made so that it would only grab connection information from the system properties. However, it is very useful to be able to directly provide the connection information from another source (for example the system environment in heroku).

The configure-db-from-environment still exists and should work the same, but now has a pure function backing it that takes strings representing the connection information instead of a string indicating the property to access.

prismofeverything commented 10 years ago

Thanks abpoms! Now to fully dial Heroku support.