src/JumpGate/Core/Abstracts/Seeder.php
protected function truncate($table)
    {
        if ($this->db->connection()->getConfig('driver') === 'mysql') {
            $this->db->statement('SET FOREIGN_KEY_CHECKS=0;');
            $this->db->table($table)->truncate();
            $this->db->statement('SET FOREIGN_KEY_CHECKS=1;');
        }
    }
protected function truncate($table)
    {
        if ($this->db->connection()->getConfig('driver') === 'mysql') {
            $this->db->statement('SET FOREIGN_KEY_CHECKS=0;');
            $this->db->table($table)->truncate();
            $this->db->statement('SET FOREIGN_KEY_CHECKS=1;');
        }
    }
protected function truncate ( $ table ) { if ( $ this -> db -> connection ( ) -> getConfig ( 'driver' ) === 'mysql' ) { $ this -> db -> statement ( 'SET FOREIGN_KEY_CHECKS=0;' ) ; $ this -> db -> table ( $ table ) -> truncate ( ) ; $ this -> db -> statement ( 'SET FOREIGN_KEY_CHECKS=1;' ) ; } }
Truncate the existing table of all records.

@param string $table
Truncate the existing table of all records .