API Reference datumo v#0.1.0

Copy Markdown View Source

Modules

A command is an embedded_schema with the board's fields. use Datumo.Command gives it new/2 and changeset/2: every field is required unless it's named in optional: (the fields with optional: true on the board).

The engine behind every write: read → fold → decide → append, with DCB and optimistic concurrency.

A domain event, declared on its struct

Reads from the event store by picking the right index instead of walking the ledger.

The board's scenarios as tests: given, then decide or read, then expect.

Behaviour for write slices (the Decider pattern with DCB).

Behaviour for read slices (read models), and the read that serves them.