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

itnoles

02/26/2024, 4:51 AM
How do I tell that Jetpack Compiler
Copy code
Database(androidSqliteDriver)
to be Runtime?
s

saket

02/26/2024, 3:15 PM
By "jetpack", are you referring to jetpack compose?
i

itnoles

02/28/2024, 12:10 AM
yeah
s

saket

02/28/2024, 7:29 PM
hmmm I don't fully understand the question, how are those two related?
i

itnoles

03/05/2024, 3:00 AM
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

saket

03/05/2024, 3:02 AM
are you running database queries from your UI?
s

saket

03/05/2024, 3:04 AM
I'm on mobile so you'll have to help me understand your code. Is DatabaseHelper accessed from your UI?
i

itnoles

03/05/2024, 3:04 AM
yeah
Copy code
fun getAllPages(): ImmutableList<TaskList> =
        database.listQueries
            .selectAllTasks()
            .executeAsList()
            .toImmutableList()
s

saket

03/16/2024, 8:53 AM
I boarded a plane right after writing that reply 😄 do you still need help with this?