Gdn_DatabaseStructure::existingColumns PHP Method

existingColumns() public method

Gets the column definitions for the columns in the database.
public existingColumns ( ) : array
return array
    public function existingColumns()
    {
        if ($this->_ExistingColumns === null) {
            if ($this->TableExists()) {
                $this->_ExistingColumns = $this->Database->sql()->fetchTableSchema($this->_TableName);
            } else {
                $this->_ExistingColumns = array();
            }
        }
        return $this->_ExistingColumns;
    }