Join Slack
Powered by
Hey all! Are SQLDelight queries executed on a back...
# squarelibraries
h
harry.singh
07/01/2020, 5:18 PM
Hey all! Are SQLDelight queries executed on a background thread? I'm reading/writing to the database from a suspend function and wondering if it is safe to call the database functions directly in there or do I have to wrap them in
withContext(<http://Dispatchers.IO|Dispatchers.IO>)
before calling them? Room allows to add suspend functions directly in the
Dao
classes and I'm wondering if SQLDelight has a similar mechanism?
7
Views
Open in Slack
Previous
Next