Skip to content

Commit eec2dee

Browse files
committed
Add database name
1 parent c09cb1a commit eec2dee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DataCollector/QueryCollector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ public function addQuery($query, $bindings, $time, $connection)
117117
'time' => $time,
118118
'source' => $source,
119119
'explain' => $explainResults,
120+
'connection' => $connection->getDatabaseName(),
120121
'hints' => $this->showHints ? $hints : null,
121122
);
122123

@@ -281,6 +282,7 @@ public function collect()
281282
'duration' => $query['time'],
282283
'duration_str' => $this->formatDuration($query['time']),
283284
'stmt_id' => $query['source'],
285+
'connection' => $query['connection'],
284286
);
285287

286288
//Add the results from the explain as new rows

0 commit comments

Comments
 (0)