Shared vocabulary types and traits for the EventCore event sourcing library.
This crate provides the foundational types that are shared between the main
eventcore crate and adapter implementations like eventcore-postgres.
By extracting these types into a separate crate, we enable feature flag-based
adapter re-exports without circular dependencies.
Overview
This crate contains:
- Command traits:
CommandLogic,CommandStreams,StreamResolver,Event,NewEvents - Command types:
StreamDeclarations,StreamDeclarationsError - Store trait:
EventStore, withEventStoreErrorandOperation - Command-state snapshots:
CommandStateSnapshotId,CommandStateSnapshot, andCommandStateReplayCheckpoint - Stream types:
StreamId,StreamVersion,StreamWrites,StreamWriteEntry,StreamPattern,StreamPrefix - Event streaming:
EventStream,EventStreamSlice,collect_events - Projection traits:
Projector,EventReader,CheckpointStore,ProjectorCoordinator - Projection types:
EventFilter,EventPage,StreamPosition,FailureContext,FailureStrategy,MaxRetries,BatchSize,DelayMilliseconds,BackoffMultiplier - Errors:
CommandError,BusinessRuleMessage