Skip to content

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 Neo4jEventSourcingConfiguration

objectNeo4jEventSourcingConfiguration

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

The name of the node key constraint that enforces uniqueness on (streamId, streamVersion) pairs.

public const string ConstraintName = "cephalon_event_stream_version"

string

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"

string