sql

All things SQL and JDBC...
sb 2021-03-25T11:14:52.064400Z

I would like to use next.jdbc with migratus and mount. I saw that is possible to use with hickari-cp eg I can stop/start server, but in this case do I need to add the pool as db? eg (migratus/init (merge migratus-config {:db *pool*})) or here is a better solution? what is the best practice?

dharrigan 2021-03-25T11:20:38.064900Z

Here's an example that I commonly use

dharrigan 2021-03-25T11:20:55.065400Z

I don't use Integrant (rather I use Juxt Clip), but the concept is the same.

sb 2021-03-25T11:21:58.065600Z

Thanks!

dharrigan 2021-03-25T11:22:01.065800Z

And here's the config that Clip uses to "boot"

dharrigan 2021-03-25T11:22:03.066Z

<https://github.com/dharrigan/startrek/blob/master/resources/config/config.edn>

👍 1
🍻 1
sb 2021-03-25T11:23:28.066200Z

Ok, thank you very much, with that that info, more clear how works! 👍

dharrigan 2021-03-25T11:23:45.066600Z

you're most welcome 🙂