public function truncate($table) {
        try{
            $this->sql = sprintf("TRUNCATE TABLE `%s`", SafeString::makeSafe($table));
            $this->executeQuery(false);
        }
        catch(\Exception $e) {
            $this->error($e);
        }
        return $this->numRows() ? true : false;
    }