Also, does `andThen` only run the next query if th...
# komapper
d
Also, does
andThen
only run the next query if the first one succeeds? Would there be a place for an
onError(query)
extension to Query?
t
Also, does andThen only run the next query if the first one succeeds?
Yes.
Would there be a place for an onError(query) extension to Query?
No. You can catch an exception and then issue next query.
d
Which breaks this nice chaining api in that case... wonder if there might be a place for andThenCatching, and the like...