| @@ 52-56 (lines=5) @@ | ||
| 49 | public function getAllColumnsNames() |
|
| 50 | { |
|
| 51 | switch (DB::connection()->getDriverName()) { |
|
| 52 | case 'pgsql': |
|
| 53 | $query = "SELECT column_name FROM information_schema.columns WHERE table_name = '" . $this->getTable() . "'"; |
|
| 54 | $column_name = 'column_name'; |
|
| 55 | $reverse = true; |
|
| 56 | break; |
|
| 57 | ||
| 58 | case 'sqlite': |
|
| 59 | $query = "PRAGMA table_info('" . $this->getTable()."')"; |
|
| @@ 58-62 (lines=5) @@ | ||
| 55 | $reverse = true; |
|
| 56 | break; |
|
| 57 | ||
| 58 | case 'sqlite': |
|
| 59 | $query = "PRAGMA table_info('" . $this->getTable()."')"; |
|
| 60 | $column_name = 'name'; |
|
| 61 | $reverse = true; |
|
| 62 | break; |
|
| 63 | ||
| 64 | ||
| 65 | case 'mysql': |
|