ExMessageDB v0.1.0 ExMessageDB.Functions View Source

Functions.

Link to this section Summary

Link to this section Functions

Link to this function

get_category_messages(category_name, position, batch_size, atom1, atom2, atom3, atom4)

View Source

Specs

get_category_messages(
  category_name :: String.t(),
  position :: non_neg_integer() | nil,
  batch_size :: non_neg_integer() | -1 | nil,
  correlation :: String.t() | nil,
  consumer_group_member :: String.t() | nil,
  consumer_group_size :: String.t() | nil,
  condition :: Keyword.t() | nil
) :: {sql :: String.t(), params :: [term()]}
Link to this function

get_last_stream_message(stream_name)

View Source

Specs

get_last_stream_message(stream_name :: String.t()) ::
  {sql :: String.t(), params :: [term()]}
Link to this function

get_stream_messages(stream_name, position, batch_size, atom)

View Source

Specs

get_stream_messages(
  stream_name :: String.t(),
  position :: non_neg_integer() | nil,
  batch_size :: non_neg_integer() | -1 | nil,
  condition :: Keyword.t() | nil
) :: {sql :: String.t(), params :: [term()]}

Specs

message_store_version() :: {sql :: String.t(), params :: []}
Link to this function

write_message(id, stream_name, type, data, metadata, expected_version)

View Source

Specs

write_message(
  id :: String.t(),
  stream_name :: String.t(),
  type :: String.t(),
  data :: map(),
  metadata :: map() | nil,
  expected_version :: non_neg_integer() | -1 | nil
) :: {sql :: String.t(), params :: [term()]}