src/Generator/Analyzer/Steps/CheckTables.php
protected function loadColumnListForTable($table)
    {
        if ($this->getDatabaseDriver() === 'sqlite') {
            $statement = "PRAGMA table_info(`{$table}`)";
        } else {
            $statement = "SHOW columns FROM `{$table}`";
        }

        $columnResults = DB::select($statement);
        $columns       = [];

        foreach ($columnResults as $columnObject) {

            $columns[] = array_get(array_values((array) $columnObject), '0');
        }

        return $columns;
    }
protected function loadColumnListForTable($table)
    {
        if ($this->getDatabaseDriver() === 'sqlite') {
            $statement = "PRAGMA table_info(`{$table}`)";
        } else {
            $statement = "SHOW columns FROM `{$table}`";
        }

        $columnResults = DB::select($statement);
        $columns       = [];

        foreach ($columnResults as $columnObject) {

            $columns[] = array_get(array_values((array) $columnObject), '0');
        }

        return $columns;
    }
protected function loadColumnListForTable ( $ table ) { if ( $ this -> getDatabaseDriver ( ) === 'sqlite' ) { $ statement = "PRAGMA table_info(`{$table}`)" ; } else { $ statement = "SHOW columns FROM `{$table}`" ; } $ columnResults = DB :: select ( $ statement ) ; $ columns = [ ] ; foreach ( $ columnResults as $ columnObject ) { $ columns [ ] = array_get ( array_values ( ( array ) $ columnObject ) , '0' ) ; } return $ columns ; }
Returns the column names for a table

@param string $table
@return array
Returns the column names for a table