[Dbix-class] Removing rows older than a given number of minutes ...

Kiffin Gish kiffin.gish at planet.nl
Sat Jan 23 21:28:12 GMT 2010


I want to delete all rows with a given state which have not been
modified for a given time in seconds.

my @rows = rs->search({ state => $state }, { last_modified => ??? });
$_->delete for (@rows);

How can I best do this?

-- 
Kiffin Gish <Kiffin.Gish at planet.nl>
Gouda, The Netherlands





More information about the DBIx-Class mailing list