Skip to content

Commit

Permalink
fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
grdsdev committed Sep 24, 2024
1 parent aea3740 commit 9758747
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 611 deletions.
18 changes: 18 additions & 0 deletions Sources/Realtime/RealtimeChannel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,24 @@ public actor RealtimeChannel {
}
}

/// Listen for postgres changes in a channel.
public func onPostgresChange(
_: AnyAction.Type,
schema: String = "public",
table: String? = nil,
filter: String? = nil,
callback: @escaping @Sendable (AnyAction) -> Void
) -> Subscription {
_onPostgresChange(
event: .all,
schema: schema,
table: table,
filter: filter
) {
callback($0)
}
}

/// Listen for postgres changes in a channel.
public func onPostgresChange(
_: InsertAction.Type,
Expand Down
Loading

0 comments on commit 9758747

Please sign in to comment.