package persistence

import (
	"github.com/nexuscrm/kernel/pkg/ports"
)

type historySequenceTestExecutor struct{ Executor }

type progressiveHistorySequencePrelockError struct {
	fields []string
}

func (e *progressiveHistorySequencePrelockError) Error() string {
	return "field-history sequence prelock plan expanded"
}

func (e *progressiveHistorySequencePrelockError) Unwrap() error {
	return ports.ErrHistorySerializationConflict
}

func (e *progressiveHistorySequencePrelockError) HistorySequencePrelockFields() []string {
	return append([]string(nil), e.fields...)
}
