Electric.Client.Message.MoveOutMessage (Electric Client v0.10.2)

Copy Markdown View Source

Represents a move-out event from the server.

Move-out events are sent when rows should be removed from the client's view because they no longer match the shape's subquery filter. The patterns field contains tag hashes that identify which rows should be removed.

The client should use these patterns to generate synthetic delete messages for any tracked rows that have matching tags.

Summary

Types

pattern()

@type pattern() :: %{pos: non_neg_integer(), value: String.t()}

t()

@type t() :: %Electric.Client.Message.MoveOutMessage{
  handle: Electric.Client.shape_handle(),
  patterns: [pattern()],
  request_timestamp: DateTime.t()
}

Functions

from_message(map, handle, request_timestamp)