Database.Entry (Eddb v0.9.0)

View Source

Summary

Functions

Combine a list of Databse.Entry's by key.

Combine a list of Databse.Entry's for a specific key. This does also sort by timestamp

Functions

combine(entries)

Combine a list of Databse.Entry's by key.

The parameter is usually obtained by getting them from multiple topics, map to the entries and flatten the result:

entries = topics # <-- A list of topics usually with the same topic name |> Enum.map(fn topic -> topic.entries end) |> List.flatten() |> Entry.combine()

combine(entries, key)

Combine a list of Databse.Entry's for a specific key. This does also sort by timestamp

get_keys(entries)

new(key, data)

update(entry, data)