Table of Contents

Class PostgresChangesResponse

Namespace
Supabase.Realtime.PostgresChanges
Assembly
Supabase.Realtime.dll

A postgres changes event.

public class PostgresChangesResponse : SocketResponse<PostgresChangesPayload<SocketResponsePayload>>, IRealtimeSocketResponse
Inheritance
PostgresChangesResponse
Implements
Inherited Members

Constructors

PostgresChangesResponse(JsonSerializerSettings)

Represents a socket response

public PostgresChangesResponse(JsonSerializerSettings serializerSettings)

Parameters

serializerSettings JsonSerializerSettings

Methods

Model<TModel>()

Hydrates the referenced record into a Model (if possible).

public virtual TModel? Model<TModel>() where TModel : BaseModel, new()

Returns

TModel

Type Parameters

TModel

OldModel<TModel>()

Hydrates the old_record into a Model (if possible).

NOTE: If you want to receive the "previous" data for updates and deletes, you will need to set REPLICA IDENTITY to FULL, like this: ALTER TABLE your_table REPLICA IDENTITY FULL;

public virtual TModel? OldModel<TModel>() where TModel : BaseModel, new()

Returns

TModel

Type Parameters

TModel