liberator

martinklepsch 2016-03-24T14:41:37.000004Z

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

martinklepsch 2016-03-24T14:41:42.000005Z

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

martinklepsch 2016-03-24T14:42:54.000007Z

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

martinklepsch 2016-03-24T14:43:19.000008Z

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

martinklepsch 2016-03-24T14:43:57.000009Z

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

martinklepsch 2016-03-24T14:44:19.000011Z

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