[Swift] RealtimeChannelV2
: Improve the postgresChange
function signature
#33619
Unanswered
LucasAbijmil
asked this question in
Feature Requests
Replies: 1 comment 3 replies
-
Hey @LucasAbijmil, That is a nice improvement, Flutter does have a convenience type for it, https://github.com/supabase/supabase-flutter/blob/6976faebd643b490f1660b54c2a5ce436d7ce021/packages/realtime_client/lib/src/types.dart#L265 I'd rather try to have similar behavior across libraries. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using
RealtimeChannelV2
, the filter passed in parameter is aString
that must be entered manually by the client.Let's consider filtering the id (of type
UUID
) column via an array, our function signature will be as follows:While this works like a charm, I can see several drawbacks:
PostgrestFilterBuilder
.The idea would be to improve syntax and readability by using something similar to
PostgrestFilterBuilder
, so that the signature would look something like:So, when called (and taking the previous example), we'd have the following:
Beta Was this translation helpful? Give feedback.
All reactions