package Ġcom . ma ur or od rig ue z 1 9 9 4 . d idi . room . dao Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ import Ġcom . ma ur or od rig ue z 1 9 9 4 . d idi . room . entity . Question Ċ import Ġkotlinx . coroutines . flow . Flow Ċ Ċ @ Dao Ċ interface ĠQuestion Dao Ġ{ ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġquestion _ table ") ĊĠĠĠ Ġfun Ġget Questions (): ĠFlow < List < Question >> ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . IGNORE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert ( question : ĠQuestion ) ĊĊĠĠĠ Ġ@ Query (" SELECT ĠCOUNT ( question _ id ) ĠFROM Ġquestion _ table ") ĊĠĠĠ Ġfun Ġget Count (): ĠFlow < Int > Ċ }