<    April 2017    >
Su Mo Tu We Th Fr Sa  
                   1  
 2  3  4  5  6  7  8  
 9 10 11 12 13 14 15  
16 17 18 19 20 21 22  
23 24 25 26 27 28 29  
30
01:28 <postmodern> adam12, started a code spike for db-tasks. wondering whether it or the user should be responsible for loading/passing in the dataabase config? or should the lib try to detect ENV['DATABASE_URI'] and config/database.yml?
01:28 <adam12> Hmm good question.
01:29 <adam12> I don't think you should assume - for Sequel at least, since there are plugins / etc to be loaded
01:29 <adam12> Maybe you can pass a block that gets called to do the load?
02:03 <postmodern> adam12, i'm working on the db specific tasks first (create, drop, console). also db:seed, which is ORM agnostic imho
02:04 <postmodern> definitely going to rely on the environment task to setup the ORM
02:04 <postmodern> or make that configurable via an option
03:50 <postmodern> adam12, how do people usually store database credentials for roda apps?
03:50 <adam12> postmodern: jeremy suggests a db.rb file
03:50 <adam12> Which is basically require sequel, setup DB variable with Sequel.connect
03:51 <postmodern> DATABASE_URL seems popular
03:53 <adam12> Yeah. Herokuism maybe
03:57 <postmodern> trying to find the similarities between how apps store/represent their DB config
03:58 <postmodern> interesting how heroku went with a single DB, and rails inspired the multi-env/db configuration
03:59 <postmodern> also interesting that ruby MVC frameworks and ORMs avoided multi-tenant DB support. Well DataMapper supported it.
05:40 wikimatze joined
06:57 wikimatze joined
10:39 <wakatara> I'd vote for DATABASE_URL... =]
10:40 <wakatara> It is very common for third party add-ons even that don't use Heroku directly. Almost a de facto standard I'd argue.
10:41 <wakatara> In the case of multiple databases, you would just use a variation on the DATABASE_URL... ie. DATABASE_RDB_URL or DATABASE_NOSQL_URL if you need it. Just a convention really.
10:41 <wakatara> (I think)
17:53 mwlang joined
18:27 mwlang joined
18:40 irclogger_com joined
18:40 Topic for
19:23 kuadrosx_ joined
20:25 postmodern joined
20:27 mwlang joined
22:14 Quintasan_ joined