From 1a53b9e106ebc7b86cd1cc48c019c15dc9f855db Mon Sep 17 00:00:00 2001 From: Antoine Date: Sat, 12 Feb 2022 16:01:33 +0100 Subject: [PATCH 1/2] Add connection name before Database name --- src/DataCollector/QueryCollector.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DataCollector/QueryCollector.php b/src/DataCollector/QueryCollector.php index fbeaf81b5..40d5f22aa 100644 --- a/src/DataCollector/QueryCollector.php +++ b/src/DataCollector/QueryCollector.php @@ -189,7 +189,7 @@ public function addQuery($query, $bindings, $time, $connection) 'time' => $time, 'source' => $source, 'explain' => $explainResults, - 'connection' => $connection->getDatabaseName(), + 'connection' => '[' . $connection->getName() . '] ' . $connection->getDatabaseName(), 'driver' => $connection->getConfig('driver'), 'hints' => $this->showHints ? $hints : null, 'show_copy' => $this->showCopyButton, @@ -478,6 +478,7 @@ public function reset() */ public function collect() { + $totalTime = 0; $queries = $this->queries; From fce00341eaa9e9250af6da4ec45ed302018131a4 Mon Sep 17 00:00:00 2001 From: Antoine Date: Sat, 12 Feb 2022 16:21:05 +0100 Subject: [PATCH 2/2] typo --- src/DataCollector/QueryCollector.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/DataCollector/QueryCollector.php b/src/DataCollector/QueryCollector.php index 40d5f22aa..41b04678f 100644 --- a/src/DataCollector/QueryCollector.php +++ b/src/DataCollector/QueryCollector.php @@ -478,7 +478,6 @@ public function reset() */ public function collect() { - $totalTime = 0; $queries = $this->queries;