Streams and Custom Statements #2867
Replies: 1 comment
-
When using custom select statements, you need to specify the tables you're selecting from manually to get updates. You can do that with the An alternative is to use drift files, which lets you get your custom SQL checked at build time. It also enables drift to figure out which tables are being watched by the query.
This can actually be done in drift with the |
Beta Was this translation helpful? Give feedback.
-
I use .watch() on select statements to receive updates as a stream. That works fine as long as the Drift API for mutation ist used. As soon as I use custom statements, the stream doesn´t emit a new value.
As I have to use custom statements in some scenarios (e.g. incrementing a column value) I´m looking for a way to maually emit new values to the stream listeners after I´ve executed a custom statement.
Is there a way to handle this?
Beta Was this translation helpful? Give feedback.
All reactions