View Source Electric.Replication.PersistentReplicationState (electric v1.0.0)
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
@spec get_last_processed_lsn(opts()) :: Electric.Postgres.Lsn.t()
@spec get_tracked_relations(opts()) :: tracked_relations()
@spec reset(opts()) :: :ok
@spec set_last_processed_lsn(Electric.Postgres.Lsn.t() | non_neg_integer(), opts()) :: :ok
@spec set_tracked_relations(tracked_relations(), opts()) :: :ok