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

Copy Markdown View Source

Represents a move-in event from the server.

Move-in events are sent when the server's subquery filter has changed and rows may now be included in the shape. The patterns field contains position and hash information that the client uses to update active_conditions on tracked rows.

Summary

Types

pattern()

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

t()

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

Functions

from_message(map, handle, request_timestamp)