for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace HDNET\Importr\Migration;
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Utility\GeneralUtility;
class DatabaseConnection implements DatabaseConnectionMigrationInterface
{
public function exec_TRUNCATEquery($table)
$connectionPool = GeneralUtility::makeInstance(ConnectionPool::class);
$connection = $connectionPool->getConnectionForTable($table);
$connection->truncate($table);
}