ExESDB.StreamsReader (ex_esdb v0.0.10-alpha)

Provides functions for reading and streaming events from the event store.

Summary

Functions

Returns a specification to start this module under a supervisor.

Returns a list of all streams in the store. ## Parameters # - store is the name of the store. ## Returns # - {:ok, streams} if successful.

Streams events from stream in batches of count events, in a direction.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_streams(store)

@spec get_streams(store :: atom()) :: {:ok, list()} | {:error, term()}

Returns a list of all streams in the store. ## Parameters # - store is the name of the store. ## Returns # - {:ok, streams} if successful.

start_link(opts)

stream_events(store, stream_id, start_version, count, direction \\ :forward)

@spec stream_events(
  store :: atom(),
  stream_id :: any(),
  start_version :: integer(),
  count :: integer(),
  direction :: :forward | :backward
) :: {:ok, Enumerable.t()} | {:error, term()}

Streams events from stream in batches of count events, in a direction.