A set of parameters used by ensureReplicationSlotAndPublicationExist helper.

Hierarchy

  • EnsureReplicationSlotAndPublicationExistParams

Properties

logger?: DbLogger

Mosaic logger instance to log info messages. If not provided, console.log is used instead.

operationsToWatch?: LogicalReplicationOperation[]

An array of database operations to be associated with (re)created publication that will be observed.

Default

  • insert, update, delete
pluginName?: string

Logical Replication output plugin to be used during (re)creation of the replication slot.

Default

  • pgoutput
publicationName: string

The name of the publication associated with the current database to be checked for existence and (re)created.

replicationPgPool: Pool

PostgreSQL Pool instance. The role that is used to create this instance must have a REPLICATION attribute assigned to it.

replicationSlotName: string

The name of the replication slot associated with the current database to be checked for existence and (re)created.

The name must be a unique value across all databases present in the PostgreSQL Server.

schemaName: string

Name of the schema for passed publication tables.

tableNames: string[]

List of table names to be associated with publication to observe changes on. REPLICA IDENTITY FULL is set for each passed table.

Generated using TypeDoc