I'm new to mount (having come from Component)...
And with Component, a healthy list of reusable components have emerged for connecting to databases, redis, etc...
Any such thing happening with Mount?
@kendall.buchanan: welcome! I am not aware of components
per se, but I remember @danielsz mentioned that he is quite open to adding components that could be reused among mount projects
one thing to note (a part of the reason it did not yet happen is), take an example of a jdbc Component component: https://github.com/danielsz/system/blob/master/src/system/components/jdbc.clj
in mount it'll just be:
(defn connect [db-spec]
(jdbc/get-connection db-spec))
(defn disconnect [conn]
(.close conn))
Right...
A slightly better example (still simple) is Hikaricp...
https://github.com/weavejester/duct-hikaricp-component/blob/master/src/duct/component/hikaricp.clj
Reusable components like this for mount might be useful. Enjoying mount so far, by the way. Very little boilerplate.
(thanks :simple_smile: ) yea, but having said that, I believe there is a room for reusable mount components, and it would be really cool to see more pull requests with them into something like <http://github.com/danielsz/system|github.com/danielsz/system>
Just to confirm : I plan to add support for mount in system.
It's just a matter of time.
Since I'm busy, and if people don't want to wait, I'll gladly accept PRs.
The grand vision is that all the components should have their mount counterparts.
Thanks for the insights, guys.
@danielsz: thanks for chiming in, that's great :simple_smile:
👍 With great pleasure.