Open practicalli-johnny opened 3 years ago
Practicalli: keep the handlers clean by passing database connection to the helper functions See banking on clojure
https://clojureverse.org/t/how-to-manage-database-connection-in-clojure/5067 https://stackoverflow.com/questions/19776462/passing-state-as-parameter-to-a-ring-handler
https://luminusweb.com/docs/database.html
The same approach is also done with component systems such as Integrant, Mount and Component
Practicalli: keep the handlers clean by passing database connection to the helper functions See banking on clojure
https://clojureverse.org/t/how-to-manage-database-connection-in-clojure/5067 https://stackoverflow.com/questions/19776462/passing-state-as-parameter-to-a-ring-handler
https://luminusweb.com/docs/database.html
The same approach is also done with component systems such as Integrant, Mount and Component