Table of Contents

Class TestDecodingOptions

Namespace
Npgsql.Replication.TestDecoding
Assembly
Npgsql.dll

Options to be passed to the test_decoding plugin

public class TestDecodingOptions : IEquatable<TestDecodingOptions>
Inheritance
TestDecodingOptions
Implements
Inherited Members

Constructors

TestDecodingOptions(bool?, bool?, bool?, bool?, bool?, bool?, bool?)

Creates a new instance of TestDecodingOptions.

public TestDecodingOptions(bool? includeXids = null, bool? includeTimestamp = null, bool? forceBinary = null, bool? skipEmptyXacts = null, bool? onlyLocal = null, bool? includeRewrites = null, bool? streamChanges = null)

Parameters

includeXids bool?

Include the transaction number for BEGIN and COMMIT command output

includeTimestamp bool?

Include the timestamp for COMMIT command output

forceBinary bool?

Set the output mode to binary

skipEmptyXacts bool?

Skip output for transactions that didn't change the database

onlyLocal bool?

Only output data that don't have the replication origin set

includeRewrites bool?

Include output from table rewrites that were caused by DDL statements

streamChanges bool?

Enable streaming output

Properties

ForceBinary

Set the output mode to binary

public bool? ForceBinary { get; }

Property Value

bool?

IncludeRewrites

Include output from table rewrites that were caused by DDL statements

public bool? IncludeRewrites { get; }

Property Value

bool?

IncludeTimestamp

Include the timestamp for COMMIT command output

public bool? IncludeTimestamp { get; }

Property Value

bool?

IncludeXids

Include the transaction number for BEGIN and COMMIT command output

public bool? IncludeXids { get; }

Property Value

bool?

OnlyLocal

Only output data that don't have the replication origin set

public bool? OnlyLocal { get; }

Property Value

bool?

SkipEmptyXacts

Skip output for transactions that didn't change the database

public bool? SkipEmptyXacts { get; }

Property Value

bool?

StreamChanges

Enable streaming output

public bool? StreamChanges { get; }

Property Value

bool?

Methods

Equals(TestDecodingOptions?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(TestDecodingOptions? other)

Parameters

other TestDecodingOptions

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.