-
Notifications
You must be signed in to change notification settings - Fork 16
fix(): implement filter on PostgresChangeHandler #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 16 commits
a6d6a67
4acbd32
6eb63d8
76a5acf
78d5989
f2a2541
84d8c9b
c188f38
016a5ea
d30efc8
f979d50
9e92f4a
8ebbea4
0430b7a
fba108a
5c3bd6d
795628a
4b78890
8d4222b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| using Supabase.Realtime.Interfaces; | ||
| using Supabase.Realtime.PostgresChanges; | ||
|
|
||
| namespace Supabase.Realtime; | ||
|
|
||
| public class Binding | ||
|
Check warning on line 6 in Realtime/Binding.cs
|
||
| { | ||
| public PostgresChangesOptions? Options { get; set; } | ||
|
Check warning on line 8 in Realtime/Binding.cs
|
||
|
|
||
| public IRealtimeChannel.PostgresChangesHandler? Handler { get; set; } | ||
|
Check warning on line 10 in Realtime/Binding.cs
|
||
|
|
||
| public PostgresChangesOptions.ListenType? ListenType { get; set; } | ||
|
Check warning on line 12 in Realtime/Binding.cs
|
||
|
|
||
| public int? Id { get; set; } | ||
|
Check warning on line 14 in Realtime/Binding.cs
|
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| using Newtonsoft.Json; | ||
|
|
||
| namespace Supabase.Realtime.Socket.Responses; | ||
|
|
||
| public class PhoenixPostgresChangeResponse | ||
| { | ||
| [JsonProperty("id")] | ||
| public int? id { get; set; } | ||
|
|
||
| [JsonProperty("event")] | ||
| public string? eventName { get; set; } | ||
|
|
||
| [JsonProperty("filter")] | ||
| public string? filter { get; set; } | ||
|
|
||
| [JsonProperty("schema")] | ||
| public string? schema { get; set; } | ||
|
|
||
| [JsonProperty("table")] | ||
| public string? table { get; set; } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| using System.Collections.Generic; | ||
| using Newtonsoft.Json; | ||
|
|
||
| namespace Supabase.Realtime.Socket.Responses; | ||
|
|
||
| public class PostgresChangeResponse | ||
| { | ||
| [JsonProperty("postgres_changes")] | ||
| public List<PhoenixPostgresChangeResponse> change { get; set; } | ||
|
Check warning on line 9 in Realtime/Socket/Responses/PostgresChangeResponse.cs
|
||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.