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
stringtable
stringeventType
PostgresChangesOptions.ListenTypefilter
stringparameters
Dictionary<string, string>
Properties
Event
The stringified event listener type
[JsonProperty("event")]
public string Event { get; }
Property Value
Filter
The filter for this listener
[JsonProperty("filter", NullValueHandling = NullValueHandling.Ignore)]
public string? Filter { get; set; }
Property Value
Parameters
The parameters passed to the server
[JsonProperty("parameters", NullValueHandling = NullValueHandling.Ignore)]
public Dictionary<string, string>? Parameters { get; set; }
Property Value
Schema
The schema for this listener, likely: public
[JsonProperty("schema")]
public string Schema { get; set; }
Property Value
Table
The table for this listener, can be: *
matching all tables in schema.
[JsonProperty("table")]
public string? Table { get; set; }