Electric.Postgres.ReplicationClient (electric v1.0.20)

View Source

A client module for Postgres logical replication.

Summary

Functions

Returns a specification to start this module under a supervisor.

Types

step()

@type step() ::
  :disconnected
  | :connected
  | :query_pg_info
  | :create_publication
  | :drop_slot
  | :create_slot
  | :set_display_setting
  | :ready_to_stream
  | :streaming

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

name(stack_id)

start_link(opts)

@spec start_link(Keyword.t()) :: :gen_statem.start_ret()

start_streaming(client)

stop(client, reason)