Electric.Replication.SchemaReconciler (electric v1.0.23)

View Source

Takes care of periodically reconciling the schema of the database with the inspector caches and active shapes.

Covers cases where either the table was recreated and thus isn't in the publication anymore, or where some alterations were made to the schema, but we don't see them because there were no writes to the affected tables.

Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Triggers an immediate schema reconciliation check.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

handle_continue(atom, state)

Callback implementation for GenServer.handle_continue/2.

init(opts)

Callback implementation for GenServer.init/1.

name(stack_id)

reconcile_now(name_or_pid)

Triggers an immediate schema reconciliation check.

start_link(opts)