If I want to log queries I may use something like DBIx::Class::QueryLog
But how can I get the resulting query only once for one result?
$db->resultset('Pool::Address')->search(
{'server.locality_id' => $self->id, usage => 0, 'destination.id' => undef},
{join => ['destination', {subnet => 'server'}], order_by => 'ip'}
)->get_query() ???
I must use ResultSet method ->as_query
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With