eventstore v0.4.3 EventStore.Streams.Stream

An event stream

Summary

Functions

append_to_stream(stream, expected_version, events)

Append the given list of events to the stream, expected version is used for optimistic concurrency.

Each logical stream is a separate process; writes to a single stream will always be serialized.

Returns :ok on success

read_stream_forward(stream, start_version \\ 0, count \\ nil)
start_link(serializer, stream_uuid)
stream_version(stream)
subscribe_to_stream(stream, subscription_name, subscriber)