Class TestDecodingReplicationSlot
- Namespace
- Npgsql.Replication.TestDecoding
- Assembly
- Npgsql.dll
Acts as a proxy for a logical replication slot initialized for for the test_decoding logical decoding plugin.
public class TestDecodingReplicationSlot : LogicalReplicationSlot
- Inheritance
-
TestDecodingReplicationSlot
- Inherited Members
Constructors
TestDecodingReplicationSlot(ReplicationSlotOptions)
Creates a new TestDecodingReplicationSlot instance.
public TestDecodingReplicationSlot(ReplicationSlotOptions options)
Parameters
options
ReplicationSlotOptionsThe ReplicationSlotOptions representing the existing replication slot
Remarks
Create a TestDecodingReplicationSlot instance with this constructor to wrap an existing PostgreSQL replication slot that has been initialized for the test_decoding logical decoding plugin.
TestDecodingReplicationSlot(string)
Creates a new TestDecodingReplicationSlot instance.
public TestDecodingReplicationSlot(string slotName)
Parameters
slotName
stringThe name of the existing replication slot
Remarks
Create a TestDecodingReplicationSlot instance with this constructor to wrap an existing PostgreSQL replication slot that has been initialized for the test_decoding logical decoding plugin.