Rill v0.10.4 Rill.MessageStore.Mnesia.Database View Source
Link to this section Summary
Link to this section Types
Link to this type
get_messages_fun()
View Source
get_messages_fun()
View Source
get_messages_fun() ::
(Rill.MessageStore.Mnesia.Repo.namespace(),
Rill.MessageStore.StreamName.t(),
non_neg_integer(),
pos_integer() ->
Rill.MessageStore.Mnesia.Repo.read_messages())
get_messages_fun() :: (Rill.MessageStore.Mnesia.Repo.namespace(), Rill.MessageStore.StreamName.t(), non_neg_integer(), pos_integer() -> Rill.MessageStore.Mnesia.Repo.read_messages())
Link to this type
row()
View Source
row()
View Source
row() :: tuple()
row() :: tuple()
Link to this type
row_map()
View Source
row_map()
View Source
row_map() :: %{
id: String.t(),
stream_name: Rill.MessageStore.StreamName.t(),
type: String.t(),
position: non_neg_integer(),
global_position: pos_integer(),
data: map(),
metadata: map(),
time: String.t()
}
row_map() :: %{ id: String.t(), stream_name: Rill.MessageStore.StreamName.t(), type: String.t(), position: non_neg_integer(), global_position: pos_integer(), data: map(), metadata: map(), time: String.t() }
Link to this section Functions
Link to this function
convert(arg1) View Source
Link to this function
convert_position(position)
View Source
convert_position(position)
View Source
convert_position(rows :: nil | non_neg_integer()) :: non_neg_integer()
convert_position(rows :: nil | non_neg_integer()) :: non_neg_integer()
Link to this function
convert_row(row) View Source
Link to this function
mnesia_get(ns, stream_name, position, batch_size)
View Source
mnesia_get(ns, stream_name, position, batch_size)
View Source
mnesia_get(
ns :: Rill.MessageStore.Mnesia.Repo.namespace(),
stream_name :: Rill.MessageStore.StreamName.t(),
position :: non_neg_integer(),
batch_size :: pos_integer()
) :: Rill.MessageStore.Mnesia.Repo.read_messages()
mnesia_get( ns :: Rill.MessageStore.Mnesia.Repo.namespace(), stream_name :: Rill.MessageStore.StreamName.t(), position :: non_neg_integer(), batch_size :: pos_integer() ) :: Rill.MessageStore.Mnesia.Repo.read_messages()
Link to this function
mnesia_get_last(ns, stream_name)
View Source
mnesia_get_last(ns, stream_name)
View Source
mnesia_get_last(
ns :: Rill.MessageStore.Mnesia.Repo.namespace(),
stream_name :: Rill.MessageStore.StreamName.t()
) :: Rill.MessageStore.Mnesia.Repo.read_message()
mnesia_get_last( ns :: Rill.MessageStore.Mnesia.Repo.namespace(), stream_name :: Rill.MessageStore.StreamName.t() ) :: Rill.MessageStore.Mnesia.Repo.read_message()
Link to this function
mnesia_put(ns, msg)
View Source
mnesia_put(ns, msg)
View Source
mnesia_put(
ns :: Rill.MessageStore.Mnesia.Repo.namespace(),
msg :: Rill.MessageStore.Mnesia.Repo.write_message()
) :: non_neg_integer()
mnesia_put( ns :: Rill.MessageStore.Mnesia.Repo.namespace(), msg :: Rill.MessageStore.Mnesia.Repo.write_message() ) :: non_neg_integer()