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

Trey

12/13/2023, 8:22 PM
Is it possible to use the sqldelight paging3 extension if your query uses "left outer join" and you need to map the objects from what sqldelight returns to the parent object that has children used by the UI?
h

hfhbd

12/13/2023, 9:23 PM
Can you please clarify what you mean? Sqldelight supports outer joins and notifies the observer (aka the flow) correctly. The paging extension should also just work. I have no idea why do you mention UI.
t

Trey

12/13/2023, 9:27 PM
I have two tables that I join. For example, I have an Author table and a Books table. I want to display a list of authors. The author object has a list of books as a member variable. I'm not sure if I can use the paging extension when I need to roll up the books into the author object.