package Ġorg . tty . daily set . model . dao Ċ Ċ import Ġandroidx . room .* Ċ import Ġkotlinx . coroutines . flow . Flow Ċ import Ġorg . tty . daily set . model . entity . User Ċ Ċ /** Ċ Ġ* ĠData Access Ġto Ġthe Ġ[ org . tty . daily set . model . entity . User ] Ċ Ġ*/ Ċ @ Dao Ċ interface ĠUser Dao Ġ{ ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠUSER ") ĊĠĠĠ Ġfun Ġall (): ĠFlow < List < User >> ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠUSER ĠWHERE Ġuser Uid Ġ= Ġ: uid ĠLIMIT Ġ 1 ") ĊĠĠĠ Ġfun Ġload ( uid : ĠString ): ĠFlow < User ?> ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . IGNORE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert ( user : ĠUser ) ĊĊĠĠĠ Ġ@ Update ĊĠĠĠ Ġsuspend Ġfun Ġupdate ( user : ĠUser ) Ċ }