Issue with dump command.

10 views
Skip to first unread message

Manoj Waikar

unread,
Jun 17, 2011, 4:46:12 PM6/17/11
to lobos-...@googlegroups.com
Hi,

After running the dump command, the migrations file which is created, has a (:use lobos.config) statement in it, but I don't think this file gets generated as a result of dump. I manually created such file with the following text -

(ns lobos.config)

(def db
     {:classname "org.postgresql.Driver"
      :subprotocol "postgresql"
      :user "lobos"
      :password "lobos"
      :subname "//localhost:5432/lobos"})

and it seemed to work.

Please let me know if this is an issue.

Thx,
Manoj.

Nicolas Buduroi

unread,
Jun 17, 2011, 4:53:31 PM6/17/11
to lobos-...@googlegroups.com
Yes, for now I'm still not sure if this file is a good idea and if it's better to automatically generate it. Having the database configuration in its own file as the (moot) advantage of making it reusable in the repl without loading the migrations file directly. As it isn't generated, we can be sure that the user is aware of it, although a warning message might be a better idea. I still need time to think about it, but I'm open to any suggestions.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages