Skip to content
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

Can you tell me the general area on how to create a stream/watch a table? #1103

Open
ember11498 opened this issue May 7, 2024 · 3 comments

Comments

@ember11498
Copy link

I want to watch if a table is changed. What are the general steps I need to make in order to achieve this?

Do you just use streamcontrollers or you also use like Notify in sql?

@alextekartik
Copy link
Contributor

This is not supported in sqflite

@ember11498
Copy link
Author

This is not supported in sqflite

Which means we need to use some logic with stream controllers

@alextekartik
Copy link
Contributor

You can implement your own notification mechanism (stream controllers or other) for example by forcing a refresh when an insert/update/delete is done on one table. I have personally use something similar but nothing generic so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants