@@ 80-90 (lines=11) @@ | ||
77 | /** |
|
78 | * @param mixed[] $query |
|
79 | */ |
|
80 | private function explainSQLitePlatform(Connection $connection, array $query) |
|
81 | { |
|
82 | $params = $query['params']; |
|
83 | ||
84 | if ($params instanceof Data) { |
|
85 | $params = $params->getValue(true); |
|
86 | } |
|
87 | ||
88 | return $connection->executeQuery('EXPLAIN QUERY PLAN ' . $query['sql'], $params, $query['types']) |
|
89 | ->fetchAll(PDO::FETCH_ASSOC); |
|
90 | } |
|
91 | ||
92 | private function explainSQLServerPlatform(Connection $connection, $query) |
|
93 | { |
|
@@ 112-122 (lines=11) @@ | ||
109 | return $stmt->fetchAll(PDO::FETCH_ASSOC); |
|
110 | } |
|
111 | ||
112 | private function explainOtherPlatform(Connection $connection, $query) |
|
113 | { |
|
114 | $params = $query['params']; |
|
115 | ||
116 | if ($params instanceof Data) { |
|
117 | $params = $params->getValue(true); |
|
118 | } |
|
119 | ||
120 | return $connection->executeQuery('EXPLAIN ' . $query['sql'], $params, $query['types']) |
|
121 | ->fetchAll(PDO::FETCH_ASSOC); |
|
122 | } |
|
123 | } |
|
124 |