Is it possible to delete a row while also returning it in the same request? `prepare("DELETE FROM ta

Is it possible to delete a row while also returning it in the same request? prepare("DELETE FROM table WHERE id = ?1").bind(bla).first() does not work

I'm retrieving a password reset hash. If it exists, I want to delete it and my code proceeds with the returned value. If it doesn't exist it needs to error out. I can easily do it across two requests but if there's a better way I'd like to hear it šŸ™‚
Was this page helpful?