In my code I've got a
$connection->query("TRUNCATE TABLE $tableName");
Works great. However using the official https://github.com/magento/magento-coding-standard ruleset it showed the following warning.
Possible raw SQL satement.
Which I understand because it is.
My question is: is it possible to truncate a table within Magento without using raw SQL?