eventstore v0.10.1 EventStore.Storage

Storage of events to a PostgreSQL database

Uses a pool of connections to the database. This is for increased concurrency and performance, but with an upper limit on concurrent access.

Link to this section Summary

Functions

Acknowledge receipt of an event by id, for a single subscription

Append the given list of recorded events to storage

Create a new event stream with the given unique identifier

Delete an existing snapshot for a given source

Initialise the PostgreSQL database by creating the tables and indexes

Get the id of the last event persisted to storage

Get the latest version of events persisted to the given stream

Read events for all streams forward from the starting event id, use zero for all events for all streams

Read a snapshot, if available, for a given source

Read events for the given stream forward from the starting version, use zero for all events for the stream

Record a snapshot of the data and metadata for a given source

Reset the PostgreSQL database by deleting all rows

Get the id and version of the stream with the given uuid

Create, or locate an existing, persistent subscription to a stream using a unique name and starting position (event id or stream version)

Get all known subscriptions, to any stream

Unsubscribe from an existing named subscription to a stream

Link to this section Functions

Link to this function ack_last_seen_event(stream_uuid, subscription_name, last_seen_event_id, last_seen_stream_version)

Acknowledge receipt of an event by id, for a single subscription

Link to this function append_to_stream(events)

Append the given list of recorded events to storage

Link to this function create_stream(stream_uuid)

Create a new event stream with the given unique identifier

Link to this function delete_snapshot(source_uuid)

Delete an existing snapshot for a given source

Link to this function initialize_store!()

Initialise the PostgreSQL database by creating the tables and indexes

Link to this function latest_event_id()

Get the id of the last event persisted to storage

Link to this function latest_stream_version(stream_uuid)

Get the latest version of events persisted to the given stream

Link to this function read_all_streams_forward(start_event_id, count)

Read events for all streams forward from the starting event id, use zero for all events for all streams

Link to this function read_snapshot(source_uuid)

Read a snapshot, if available, for a given source

Link to this function read_stream_forward(stream_id, start_version, count)

Read events for the given stream forward from the starting version, use zero for all events for the stream

Link to this function record_snapshot(snapshot)

Record a snapshot of the data and metadata for a given source

Reset the PostgreSQL database by deleting all rows

Link to this function stream_info(stream_uuid)

Get the id and version of the stream with the given uuid

Link to this function subscribe_to_stream(stream_uuid, subscription_name, start_from_event_id \\ nil, start_from_stream_version \\ nil)

Create, or locate an existing, persistent subscription to a stream using a unique name and starting position (event id or stream version)

Link to this function subscriptions()

Get all known subscriptions, to any stream

Link to this function unsubscribe_from_stream(stream_uuid, subscription_name)

Unsubscribe from an existing named subscription to a stream