Fork me on GitHub
#sql
<
2020-04-29
>
seancorfield00:04:34

If you use Stuart Sierra's Component library with next.jdbc, I've just added some experimental out-of-the-box support for it (without next.jdbc requiring it as a dependency so it won't affect anyone who doesn't use Component!): https://github.com/seancorfield/next-jdbc/commit/66fdba4be9a80a85d5fc75df0a2341820b10fa22

💯 12
👏 4
teodorlu08:04:47

Nice! If I understand correctly, you're using "extend via metadata" to extend the protocol without adding a dependency on the package the protocol is defined in?

seancorfield16:04:15

Correct. If your project doesn't include Component, this feature doesn't do anything useful.

👌 4
seancorfield00:04:11

The expected usage is provided in the comment form. I'll document it fully before cutting the next release.