Crate libocc[][src]

This crate offers versioned CRUD operations for entities.

Any entity is modified using events. Every event is either of type create, update or delete.

You can use the Repository struct to use a nice abstraction for the underlying event logs, or use the Projector struct to access the lower-level operations of event projection.

Structs

EventContent

The Event struct usually is part of a list of events called an “event log”. Each event represents an atomic change in an entity (including its creation or destruction). Every event log only contains one entity type: Two entity types should have two separate event logs.

Projector

Projects events from an event log

Segment

A segment is a part of an event log.

Enums

Event

The CRUD operation type

Type Definitions

Timestamp

The timestamp type used in this library