Currently, there is no way to perform an INSERT RETURNING * for the reactive query executors. Reason being is that the findOne/findMany-methods are taking a ResultQuery, but the actual INSERT RETURNING returns a UpdateResultStep. We cannot relax the method parameter of the findOne/findMany-methods to Query because otherwise we would encourage users to submit an UPDATE or DELETE query.
With the following method the user could execute any query:
Currently, there is no way to perform an
INSERT RETURNING *
for the reactive query executors. Reason being is that thefindOne
/findMany
-methods are taking aResultQuery
, but the actual INSERT RETURNING returns aUpdateResultStep
. We cannot relax the method parameter of thefindOne
/findMany
-methods toQuery
because otherwise we would encourage users to submit an UPDATE or DELETE query.With the following method the user could execute any query:
If required, mapping the
Row
into a POJO can be done using the rightRowMapper
.