[Dbix-class] DELETE .... RETURNING

Bill Moseley moseley at hank.org
Sat Feb 20 00:12:45 GMT 2016


Two related questions.

First,  I have a resultset where I want to call $rs->delete_all and I'd
like to know specifically which rows got deleted.    RETURNING works for
this, of course, but wondering if there's a way in DBIC to do this.

In a similar way we often will update or insert and then ->discard_changes
to fetch updated row, but that's two queries.   Any way to do more than
just RETURNING id?


-- 
Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20160219/a6e0a97f/attachment.htm>


More information about the DBIx-Class mailing list