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