Summary
Functions
Returns a specification to start this module under a supervisor.
Types
@type initialize_shape_opts() :: %{ :action => :create | :restore, optional(:otel_ctx) => Electric.Telemetry.OpenTelemetry.otel_ctx() | nil, optional(:feature_flags) => [binary()], optional(:is_subquery_shape?) => boolean() }
Functions
@spec await_snapshot_start(Electric.stack_id(), Electric.shape_handle(), timeout()) :: :started | {:error, any()}
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec initialize_shape(pid(), Electric.Shapes.Shape.t(), initialize_shape_opts()) :: :ok
@spec subscribe_materializer(Electric.stack_id(), Electric.shape_handle(), pid()) :: {:ok, Electric.Replication.LogOffset.t()}
@spec whereis(Electric.stack_id(), Electric.shape_handle()) :: pid() | nil