Gdn_DatabaseStructure::get PHP Method

get() public method

Load the schema for this table from the database.
public get ( string $TableName = '' ) : Gdn_DatabaseStructure
$TableName string The name of the table to get or blank to get the schema for the current table.
return Gdn_DatabaseStructure $this
    public function get($TableName = '')
    {
        if ($TableName) {
            $this->table($TableName);
        }
        $Columns = $this->Database->sql()->fetchTableSchema($this->_TableName);
        $this->_Columns = $Columns;
        return $this;
    }