MySqlProcessor.php
2 years ago
PostgresProcessor.php
2 years ago
Processor.php
2 years ago
SQLiteProcessor.php
2 years ago
SqlServerProcessor.php
2 years ago
MySqlProcessor.php
21 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Database\Query\Processors; |
| 4 | |
| 5 | /** @internal */ |
| 6 | class MySqlProcessor extends Processor |
| 7 | { |
| 8 | /** |
| 9 | * Process the results of a column listing query. |
| 10 | * |
| 11 | * @param array $results |
| 12 | * @return array |
| 13 | */ |
| 14 | public function processColumnListing($results) |
| 15 | { |
| 16 | return \array_map(function ($result) { |
| 17 | return ((object) $result)->column_name; |
| 18 | }, $results); |
| 19 | } |
| 20 | } |
| 21 |