Path: redb/redb.Core/Exceptions/RedbUniqueViolationKind.cs
Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb
Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Core/Exceptions/RedbUniqueViolationKind.cs
----
namespace redb.Core.Exceptions;
///
/// Which unique index rejected a save - first-class discrimination for
/// (BR-8, Tsak report, 2026-09-02), so callers
/// branch on a value instead of matching provider-specific constraint-name strings.
///
public enum RedbUniqueViolationKind
{
/// The driver's report could not be classified; inspect
/// / Detail / Cause.
Unknown = 0,
/// The object key: UIX__objects__scheme_unique over
/// (_id_scheme, _value_unique) - another object of the scheme already holds this
/// ValueUnique. SaveByUniqueAsync retries exactly this kind once onto the
/// current winner's row.
ObjectKey = 1,
/// A [RedbUnique] property key: UIX__values__structure_unique - another
/// object holds this value in the same property. Never retried by the object-key upsert.
Property = 2,
}