Represents a notification received from PostgreSQL's LISTEN/NOTIFY mechanism.
Parsed from a comma-separated payload containing the stream UUID, stream ID, and the first and last stream versions of newly appended events.
Examples:
iex> Decree.Store.Notifications.Notification.new("stream-12345,1,2,5")
%Decree.Store.Notifications.Notification{
stream_uuid: "stream-12345",
stream_id: 1,
from_stream_version: 2,
to_stream_version: 5
}
Summary
Functions
Parses the PostgreSQL NOTIFY payload and builds a new struct.