PdoDataSource::getColumns PHP Method

getColumns() public method

List the column names of a table alphabetically.
public getColumns ( string $table ) : array(string)
$table string Table whose columns to list.
return array(string)
    function getColumns($table)
    {
        $cacheKey = $this->cachePrefix . $table . '::Columns';
        $columns = Cache::get($cacheKey);
        if (!$columns) {
            $columns = $this->provider->getColumns($table);
            Cache::set($cacheKey, $columns);
        }
        return $columns;
    }