Table of Contents

Class PostgresDataChange

Namespace
Excalibur.Cdc.Postgres
Assembly
Excalibur.Cdc.Postgres.dll

Represents a single column change in a Postgres CDC event.

public sealed class PostgresDataChange
Inheritance
PostgresDataChange
Inherited Members

Properties

ColumnName

Gets the name of the column that changed.

public string ColumnName { get; init; }

Property Value

string

DataType

Gets the Postgres data type of the column.

public string DataType { get; init; }

Property Value

string

HasChanged

Gets a value indicating whether the value was actually changed (for updates).

public bool HasChanged { get; }

Property Value

bool

IsPrimaryKey

Gets a value indicating whether this column is part of the primary key.

public bool IsPrimaryKey { get; init; }

Property Value

bool

NewValue

Gets the value after the change (null for deletes).

public object? NewValue { get; init; }

Property Value

object

OldValue

Gets the value before the change (null for inserts).

public object? OldValue { get; init; }

Property Value

object