2 declare(strict_types = 1);
33 'name' =>
'be_sessions',
34 'description' =>
'Backend user sessions'
37 'name' =>
'fe_sessions',
38 'description' =>
'Frontend user sessions',
41 'name' =>
'sys_history',
42 'description' =>
'Tracking of database record changes through TYPO3 backend forms',
45 'name' =>
'sys_lockedrecords',
46 'description' =>
'Record locking of backend user editing',
50 'description' =>
'General log table',
53 'name' =>
'sys_preview',
54 'description' =>
'Workspace preview links',
57 'name' =>
'tx_extensionmanager_domain_model_extension',
58 'description' =>
'List of TER extensions',
61 'name' =>
'tx_rsaauth_keys',
62 'description' =>
'Login process key storage'
73 $tableStatistics = [];
74 foreach ($this->tableList as $table) {
75 $connection = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable($table[
'name']);
76 if ($connection->getSchemaManager()->tablesExist([$table[
'name']])) {
77 $table[
'rowCount'] = $connection->count(
82 $tableStatistics[] = $table;
85 return $tableStatistics;
97 foreach ($this->tableList as $table) {
98 if ($table[
'name'] === $tableName) {
104 throw new \RuntimeException(
105 'Selected table ' . $tableName .
' can not be cleared',
109 GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable($tableName)->truncate($tableName);