Capstan.Snapshot.Meta (Capstan v0.2.0)

Copy Markdown View Source

The value-free metadata delivered alongside a snapshot chunk to Capstan.Sink.handle_snapshot/2.

Carries only structural identity — the schema/table, the chunk sequence number, the chunk's exact GTID position string g (captured under the brief per-chunk lock), and whether this is the final chunk of the table. No field holds a row value (Rule 1), so the whole struct is safe to inspect/log. g is a canonical GTID-set string (Capstan.Gtid form), never a row value.

Summary

Types

t()

@type t() :: %Capstan.Snapshot.Meta{
  chunk_seq: non_neg_integer(),
  final_chunk?: boolean(),
  g: String.t(),
  schema: String.t(),
  table: String.t()
}