Fork me on GitHub
#duct
<
2017-10-27
>
jahson07:10:28

[:duct.database.sql/hikaricp :your-ns.db/db-name] {:jdbc-url "jdbc:somedb//etc."}
[:duct.database.sql/hikaricp :your-ns.db/other-db-name] {:jdbc-url "jdbc:someotherdb//etc."}
https://github.com/weavejester/integrant#composite-keys Like this IIRC.

danlebrero08:10:49

awesome. Thanks a lot @jahson

jahson16:10:01

@weavejester I’m trying to figure out cause of exception when migrator.ragtime is added to project.clj

> lein new duct foobar +api +example
Generating a new Duct project named foobar...
Run 'lein duct setup' in the project directory to create local config files.

> cd foobar && lein duct setup
Created profiles.clj
Created .dir-locals.el
Created dev/resources/local.edn
Created dev/src/local.clj

> vim project.clj
...add [duct/migrator.ragtime "0.2.0"]...

> lein repl
(dev)
(go)
CompilerException java.lang.IllegalArgumentException: Can't define method not in interfaces: _log, compiling:(duct/logger/timbre.clj:38:1)

weavejester18:10:51

@jahson I’ve followed the steps you posted, but I can’t reproduce the result. Is there something else you added? Have you done a lein clean?

jahson20:10:03

@weavejester yeah I’ve done a lein clean

weavejester20:10:50

@jahson Is there another step you’ve omitted from your description? If I follow your steps as written, it works fine for me.

jahson20:10:53

No other steps, sadly. I’ve tried to disable lein profile but still no result

weavejester20:10:58

@jahson So just adding the migrator.ragtime dependency to an entirely new project causes a failure?

weavejester20:10:07

You’ve changed nothing else?

weavejester20:10:55

Hm. I tried nuking my dependencies and redownloading. Still can’t replicate the problem.

weavejester20:10:08

No dependency issues around the logger…

weavejester20:10:54

@jahson What does your dependency tree look like when you run lein deps :tree?

weavejester20:10:41

Ah, okay, I see. The dependency graph is resolving differently for you.

weavejester20:10:12

@jahson You can fix it by putting in an explicit dependency for [duct/logger "0.2.0"]

weavejester20:10:26

I’ll update the migrator.ragtime deps and release a new version.

jahson20:10:00

@weavejester Oh my, I should have done that myself. I’ve even tried using checkout with updated logger dependency but it didn’t worked somehow. Thank you!

weavejester20:10:36

It would be nice if Maven/Lein deps were deterministic instead of a crapshoot 🙂

jahson20:10:40

Fully agree.