Hey all! Are SQLDelight queries executed on a back...
# squarelibraries
h
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?