How do I tell that Jetpack Compiler ```Database(an...
# squarelibraries
i
How do I tell that Jetpack Compiler
Copy code
Database(androidSqliteDriver)
to be Runtime?
s
By "jetpack", are you referring to jetpack compose?
i
yeah
s
hmmm I don't fully understand the question, how are those two related?
i
I was reading https://chrisbanes.me/posts/composable-metrics/ to test it out. In those metrics, it had Database as Uncertain, but not Runtime.
s
are you running database queries from your UI?
s
I'm on mobile so you'll have to help me understand your code. Is DatabaseHelper accessed from your UI?
i
yeah
Copy code
fun getAllPages(): ImmutableList<TaskList> =
        database.listQueries
            .selectAllTasks()
            .executeAsList()
            .toImmutableList()
s
I boarded a plane right after writing that reply 😄 do you still need help with this?