Contao\Database::getSizeOf PHP Méthode

getSizeOf() public méthode

Return the table size in bytes
public getSizeOf ( string $strTable ) : integer
$strTable string The table name
Résultat integer The table size in bytes
    public function getSizeOf($strTable)
    {
        $statement = $this->resConnection->executeQuery('SHOW TABLE STATUS LIKE ' . $this->resConnection->quote($strTable));
        $status = $statement->fetch(\PDO::FETCH_ASSOC);
        return $status['Data_length'] + $status['Index_length'];
    }