如果我想记录查询,我可能会使用类似DBIx::Class::QueryLog
的内容但是,如何只为一个结果获得一次结果查询?
$db->resultset('Pool::Address')->search(
{'server.locality_id' => $self->id, usage => 0, 'destination.id' => undef},
{join => ['destination', {subnet => 'server'}], order_by => 'ip'}
)->get_query() ???