Prado\Data\Common\TDbMetaData::getTableInfo PHP 메소드

getTableInfo() 공개 메소드

Obtains table meta data information for the current connection and given table name.
public getTableInfo ( $tableName = null ) : TDbTableInfo
리턴 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];
    }