Table of Contents

Class PostgresChangesOptions

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

Handles a postgres_changes channel

For Example in the js client:

const databaseFilter = {
	schema: 'public',
	table: 'messages',
	filter: `room_id=eq.${channelId}`,
	event: 'INSERT',
}

Would translate to:

new PostgresChangesOptions("public", "messages", $"room_id=eq.{channelId}");
public class PostgresChangesOptions
Inheritance
PostgresChangesOptions
Inherited Members

Constructors

PostgresChangesOptions(string, string?, ListenType, string?, Dictionary<string, string>?)

Postgres changes options.

public PostgresChangesOptions(string schema, string? table = null, PostgresChangesOptions.ListenType eventType = ListenType.All, string? filter = null, Dictionary<string, string>? parameters = null)

Parameters

schema string
table string
eventType PostgresChangesOptions.ListenType
filter string
parameters Dictionary<string, string>

Properties

Event

The stringified event listener type

[JsonProperty("event")]
public string Event { get; }

Property Value

string

Filter

The filter for this listener

[JsonProperty("filter", NullValueHandling = NullValueHandling.Ignore)]
public string? Filter { get; set; }

Property Value

string

Parameters

The parameters passed to the server

[JsonProperty("parameters", NullValueHandling = NullValueHandling.Ignore)]
public Dictionary<string, string>? Parameters { get; set; }

Property Value

Dictionary<string, string>

Schema

The schema for this listener, likely: public

[JsonProperty("schema")]
public string Schema { get; set; }

Property Value

string

Table

The table for this listener, can be: * matching all tables in schema.

[JsonProperty("table")]
public string? Table { get; set; }

Property Value

string