Class Neo4jEventSourcingConfiguration
Namespace: Cephalon.EventSourcing.Neo4j
Assembly: Cephalon.EventSourcing.Neo4j.dll
Holds schema constants and the Cypher statement that bootstraps the event-store constraint in Neo4j.
public static class Neo4jEventSourcingConfigurationInheritance
Section titled “Inheritance”object ← Neo4jEventSourcingConfiguration
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Fields
Section titled “Fields”ConstraintName
Section titled “ ConstraintName”The name of the node key constraint that enforces uniqueness on (streamId, streamVersion) pairs.
public const string ConstraintName = "cephalon_event_stream_version"Field Value
Section titled “Field Value”CreateConstraintCypher
Section titled “ CreateConstraintCypher”The Cypher statement that creates the compound node key constraint on (streamId, streamVersion).
IS NODE KEY enforces both uniqueness and existence, providing the primary optimistic concurrency guard.
public const string CreateConstraintCypher = "CREATE CONSTRAINT cephalon_event_stream_version IF NOT EXISTS FOR (e:Event) REQUIRE (e.streamId, e.streamVersion) IS NODE KEY"