Electric.Replication.PersistentReplicationState (electric v1.0.20)

View Source

Summary

Types

opts()

@type opts() :: [stack_id: String.t(), persistent_kv: Electric.PersistentKV.t()]

tracked_relations()

@type tracked_relations() :: %{
  table_to_id: %{
    required({String.t(), String.t()}) =>
      Electric.Replication.Changes.relation_id()
  },
  id_to_table_info: %{
    required(Electric.Replication.Changes.relation_id()) =>
      Electric.Replication.Changes.Relation.t()
  }
}

Functions

get_tracked_relations(opts)

@spec get_tracked_relations(opts()) :: tracked_relations()

reset(opts)

@spec reset(opts()) :: :ok

set_tracked_relations(tracked_relations, opts)

@spec set_tracked_relations(tracked_relations(), opts()) :: :ok