duct

walterl 2020-06-19T16:47:05.154400Z

In what module is the :duct/database key defined?

kwrooijen 2020-06-19T17:07:34.154800Z

What do you mean by defined?

kwrooijen 2020-06-19T17:13:12.156500Z

AFAIK there's no :duct/database key, there is a :duct.database/sql though. For example the hikaricp duct init key derived from this. That way you can reference it as :duct.database/sql. If you switch to a different database pool you won't have to change this key

walterl 2020-06-19T18:05:09.157400Z

Thanks, @kevin.van.rooijen, but I found it in another lib being used.

kwrooijen 2020-06-19T18:07:27.157600Z

Which one?

walterl 2020-06-19T18:14:19.158800Z

Looks like I was mistaken. It's in the code base I'm working, passed with :duct/daemon to the top-level ig/init. Not the best name for that key 😕

kwrooijen 2020-06-19T18:15:40.159900Z

Ah ok, so they're starting whatever derives from :duct/database on boot I guess. A bit strange unless no other keys are referring to that key

walterl 2020-06-19T18:16:50.161100Z

Exactly. There are a few keys that derive from :duct/database, but no other components refer to them. Apologies, the duct ns led me to assume that it was from duct.

kwrooijen 2020-06-19T18:17:24.161500Z

Crisis averted 👍

😆 1