merge iterable queries with new count_time
This commit is contained in:
parent
d64603674e
commit
3954f3d296
1 changed files with 2 additions and 2 deletions
|
@ -256,7 +256,7 @@ class Database
|
|||
{
|
||||
$_start = microtime(true);
|
||||
$data = $this->execute($query, $args);
|
||||
$this->count_time("get_all_iterable", $_start);
|
||||
$this->count_time("get_all_iterable", $_start, $query, $args);
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
@ -293,7 +293,7 @@ class Database
|
|||
{
|
||||
$_start = microtime(true);
|
||||
$stmt = $this->execute($query, $args);
|
||||
$this->count_time("get_col_iterable", $_start);
|
||||
$this->count_time("get_col_iterable", $_start, $query, $args);
|
||||
foreach ($stmt as $row) {
|
||||
yield $row[0];
|
||||
}
|
||||
|
|
Reference in a new issue