Prado\Data\Common\TDbMetaData::getTableInfo PHP Method

getTableInfo() public method

Obtains table meta data information for the current connection and given table name.
public getTableInfo ( $tableName = null ) : TDbTableInfo
return TDbTableInfo table information.
    public function getTableInfo($tableName = null)
    {
        $key = $tableName === null ? $this->getDbConnection()->getConnectionString() : $tableName;
        if (!isset($this->_tableInfoCache[$key])) {
            $class = $this->getTableInfoClass();
            $tableInfo = $tableName === null ? new $class() : $this->createTableInfo($tableName);
            $this->_tableInfoCache[$key] = $tableInfo;
        }
        return $this->_tableInfoCache[$key];
    }