Clojurians
#liberator
<
2016-03-24
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

martinklepsch14:03:37

calling a thing defresource defined thing will return an actual handler function, right?

martinklepsch14:03:42

(OPTIONS "/" [] (entry-point (-> sys :db-pool :pool)))

martinklepsch14:03:54

I'm trying to wrap my head around how I can parameterize a resource on a per request basis

martinklepsch14:03:19

I.e. for each request I want to take a connection from the connection pool

martinklepsch14:03:57

I currently do this with a with-open like macro that gives me a connection and makes sure it's invalidated if any exception occurs

martinklepsch14:03:19

now I don't understand how I could do any such wrapping with liberator