View Source Electric.Replication.PersistentReplicationState (electric v1.0.1)

Summary

Types

@type opts() :: [stack_id: String.t(), persistent_kv: Electric.PersistentKV.t()]
@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

Link to this function

get_tracked_relations(opts)

View Source
@spec get_tracked_relations(opts()) :: tracked_relations()
@spec reset(opts()) :: :ok
Link to this function

set_tracked_relations(tracked_relations, opts)

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