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 25, 2024
1 parent 5687217 commit f5cec16
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 f5cec16

Please sign in to comment.