memories/lib/Db/TimelineQueryNativeX.php

18 lines
330 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace OCA\Memories\Db;
use OCP\DB\QueryBuilder\IQueryBuilder;
trait TimelineQueryNativeX
{
public function transformNativeQuery(IQueryBuilder &$query, bool $aggregate): void
{
if (!$aggregate) {
$query->addSelect('m.epoch', 'f.size', 'm.buid');
}
}
}