Join Slack
Powered by
Really enjoyed this article about sqldelight views...
# squarelibraries
k
kevin.cianfarini
09/26/2019, 10:56 PM
Really enjoyed this article about sqldelight views. Can't believe I haven't been leveraging this more
https://leandrofavarin.com/sqldelight-powerful-codegen
👍 4
kevin.cianfarini
09/26/2019, 11:01 PM
@jw
can you describe how listening for changes on all tables involved in a view is implemented? I'm curious
j
jw
09/26/2019, 11:19 PM
The compiler parses all your SQL and sees that it depends on two tables. As a result, it code generates in such a way that both tables are observed.
👍 2
k
kevin.cianfarini
09/26/2019, 11:20 PM
Cool. Figured it might be in the compiler. Was poking around the runtime and wasn't seeing exactly what you described
6
Views
Open in Slack
Previous
Next