Electric.Replication.PublicationManager.RelationTracker (electric v1.2.4)
View SourceProvides interface for shapes to register and deregister themselves from a publication, and tracks the overall set of relations that need to be published using reference counting.
Relies on Electric.Replication.PublicationManager.Configurator to perform the actual publication updates and handles status updates to reply to shapes requesting to be registered.
Summary
Functions
Returns a specification to start this module under a supervisor.
Types
@type relation_filters() :: MapSet.t(Electric.oid_relation())
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec fetch_current_filters!(Keyword.t()) :: relation_filters()
@spec notify_publication_status( Electric.Postgres.Configuration.publication_status(), Keyword.t() ) :: :ok
@spec notify_relation_configuration_result( Electric.oid_relation(), {:ok, term()} | {:error, any()}, Keyword.t() ) :: :ok