https://kotlinlang.org logo
#squarelibraries
Title
# squarelibraries
m

myanmarking

05/11/2021, 6:38 PM
in sqldelight, is there any equivalent of room
Copy code
roomDatabase.invalidationTracker.addObserver(invalidator)
? I need to observe table changes, i don’t need the changed data or notifications, just to know
a

alec

05/11/2021, 7:56 PM
You could make a select all query on that table, and then manually add a listener to it
m

myanmarking

05/11/2021, 7:57 PM
ya, thats what i ended up doing. SELECT 1 FROM tableName should work
thanks!
3 Views