One thing more:

I am using 
https://clojure.github.io/java.jdbc/#clojure.java.jdbc/db-transaction* for 
that matter which expects a single function as the second argument (that's 
why it works so nicely in the Ring middleware function wrapping scenario).

On Wednesday, September 11, 2019 at 2:50:26 PM UTC+2, matus...@gmail.com 
wrote:
>
> Hi everybody
>
> Let's say I have a ring middleware ("wrap-in-transaction") which wraps the 
> whole middleware chain in a transaction and rolls back if any of the 
> wrapped middlewares raises an exception.
>
> (defn main-handler []
>   (-> handler
>        middleware1
>        ...
>        middlewareN
>        wrap-in-transaction))
>
> How does one do it in Pedestal? 
>
> Basically what I imagine is having an interceptor (or more) which somehow 
> wraps all the further call queue inside a transaction and on ":leave" would 
> rollback if ":errors".
>
> But how?
>
> Thanks
> Matus
>

-- 
You received this message because you are subscribed to the Google Groups 
"pedestal-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pedestal-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pedestal-users/c21f1598-4a9a-49f4-8afd-b1350d5fb80e%40googlegroups.com.

Reply via email to