Electric.LsnTracker (electric v1.4.13)

View Source

Summary

Types

stack_ref()

@type stack_ref() :: Electric.stack_id() | atom()

Functions

get_last_processed_lsn(stack_id)

@spec get_last_processed_lsn(Electric.stack_id()) :: Electric.Postgres.Lsn.t()

initialize(stack_ref)

@spec initialize(stack_ref()) :: :ok

initialize_last_processed_lsn(stack_ref, lsn)

@spec initialize_last_processed_lsn(stack_ref(), Electric.Postgres.Lsn.t()) :: :ok

set_last_processed_lsn(stack_ref, lsn)

@spec set_last_processed_lsn(
  stack_ref(),
  Electric.Postgres.Lsn.t() | non_neg_integer()
) :: :ok

stack_ref(stack_id)

@spec stack_ref(Electric.stack_id()) :: atom()

Returns the ETS table name used to store LSN info for the given stack ID.