mini\Database\VirtualDatabase::executeAggregateSelect() Method

private

Signature

private function executeAggregateSelect(mini\Parsing\SQL\AST\SelectStatement $ast, mini\Table\Contracts\TableInterface $table): iterable

Parameters

Name Type Default Description
$ast mini\Parsing\SQL\AST\SelectStatement required Documentation missing
$table mini\Table\Contracts\TableInterface required Documentation missing

Returns

iterable

Documentation

Execute an aggregate SELECT (e.g., SELECT COUNT(*), SUM(price) FROM orders)

Without GROUP BY: returns a single row with aggregate results. With GROUP BY: returns one row per group with group columns + aggregate results.

Source

src/Database/VirtualDatabase.php:1803-1818