merge iterable queries with new count_time
This commit is contained in:
		
							parent
							
								
									d64603674e
								
							
						
					
					
						commit
						3954f3d296
					
				| @ -256,7 +256,7 @@ class Database | |||||||
|     { |     { | ||||||
|         $_start = microtime(true); |         $_start = microtime(true); | ||||||
|         $data = $this->execute($query, $args); |         $data = $this->execute($query, $args); | ||||||
|         $this->count_time("get_all_iterable", $_start); |         $this->count_time("get_all_iterable", $_start, $query, $args); | ||||||
|         return $data; |         return $data; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
| @ -293,7 +293,7 @@ class Database | |||||||
|     { |     { | ||||||
|         $_start = microtime(true); |         $_start = microtime(true); | ||||||
|         $stmt = $this->execute($query, $args); |         $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) { |         foreach ($stmt as $row) { | ||||||
|             yield $row[0]; |             yield $row[0]; | ||||||
|         } |         } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user