code: public function resetSequence($table, $value = null)
      {
          $sql = $this->db->getQueryBuilder()->resetSequence($table, $value);
  
          return $this->setSql($sql);
      }
docs: Creates a SQL command for resetting the sequence value of a table's primary key.
  The sequence will be reset such that the primary key of the next new row inserted
  will have the specified value or the maximum existing value +1.
  @param string $table the name of the table whose primary key sequence will be reset
  @param mixed $value the value for the primary key of the next new row inserted. If this is not set,
  the next new row's primary key will have the maximum existing value +1.
  @return $this the command object itself
  @throws NotSupportedException if this is not supported by the underlying DBMS