Member Junction
    Preparing search index...

    Result of comparing a caller's baseline (OldValue or ConcurrencyBaseline) and intended new values against the authoritative row currently stored in the database.

    interface FieldConcurrencyCheckResult<TValue = unknown> {
        ClientDifferences: ConflictDiagnosticEntry<TValue>[];
        ConflictingFields: string[];
        DBDifferences: ConflictDiagnosticEntry<TValue>[];
        FieldsToPreserveFromDB: Set<string>;
        Overlap: ConflictDiagnosticEntry<TValue>[];
    }

    Type Parameters

    • TValue = unknown
    Index

    Properties

    ClientDifferences: ConflictDiagnosticEntry<TValue>[]

    Fields modified by the caller relative to the baseline.

    ConflictingFields: string[]

    Fields where the stored database value differs from both the baseline and the caller's intended new value.

    Fields where the stored database value differs from the baseline.

    FieldsToPreserveFromDB: Set<string>

    Fields that changed in the database but were NOT modified by the caller (safe to preserve from DB).

    Subset of ClientDifferences that conflict with concurrent database edits.