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
returning data from stream in flutter #218
Comments
@yutech23 Are you unable to receive all insert, update, and delete events, or is it only delete events? There was an issue on our realtime server where the delete events stopped coming through when listening with eq filter, which is resolved now. |
@dshukertjr |
We need to able to cancel stream with StreamSubscription Like |
@iampopal That sounds like a separate issue, so would you want to open a new issue and discuss it there? It would be helpful if you could follow the issue template and include some reproducible code as well! |
@yutech23 The issue with not being able to receive delete events has been resolved, so I would like to close this one assuming you were facing the same issue, but if you are still experiencing the issue that you open this thread for, please feel free to reopen it at any time! |
Hi Sorry for late reply, this problem continues. return value: |
@yutech23 May I ask how you are listening to your stream? Also, you have a provided an screenshot of a log, but how are you logging the data? If you could provide the code for it as well, it would be amazing! |
Of course. like this Data input; |
@yutech23 I want to make sure that I understand the issue here, but in the title of this issue, you wrote that relatime does not work when listening to a specific column, but it looks like you are not listening to a specific column in this example. Is the issue that you are not able to receive any realtime data at all? If so, there are few things that come to my mind here.
|
Hi, My Code; ElevatedButton(
onPressed:() async{
var res = db.supabase.from('category1').stream(['name']).execute();
res.listen((event) {
print(event);
});
},
child: Text('Gönder')) Returning Data; [{category1_id: 15, name: Unisex}, {category1_id: 23, name: Kadın}, {category1_id: 25, name: Erkek}] Note: Returned All Table data. Thank you for all of replies. |
@yutech23 I don't think you can stream specific columns. Is |
@yutech23 @Vinzent03 supabase.from('category1').stream(primaryKeys: ['id']) This might open up the api to allow only retrieving certain columns like this: supabase.from('category1').stream(primaryKeys: ['id'], columns: ['name', 'category']) |
I think that makes it more clear. Do you want to support the column select on client or just prepare for server select with named parameters. But we should change the name, because there is only one primary key, but with multiple columns. |
Sorry, didn't catch this one. What do you mean by "server select"?
Oh yeah, makes sense! |
@dshukertjr I mean whether you want to prepare for a future feature of the realtime server of selecting columns, because that's currently not possible, right? Or you want to select columns in the local dart code? So basically where the column filtering happens, on realtime server or local. |
@Vinzent03 |
@dshukertjr lets include the stream parameter change in supabase-dart 1.0.0, right? |
'name' is not primary key column. |
@yutech23 db.supabase.from('category1').stream(['category1_id']).execute(); Note that there is no way to limit which columns to retrieve at the moment, and |
Thank you for all of replies. This feature would be good. |
@yutech23 Is your original issue solved, so we can close this? Selecting columns in stream should be discussed in another issue. |
Of course you could close. |
doesn't work listening to a specific column.
My Table;
database columns(category5) = (category5_id,name,fk_category4_id)
My code is;
The text was updated successfully, but these errors were encountered: