package Ġcom . example . clean architecture . data . local . db . dao Ċ Ċ import Ġandroid . arch . lifecycle . LiveData Ċ import Ġandroid . arch . persistence . room . Dao Ċ import Ġandroid . arch . persistence . room . Insert Ċ import Ġandroid . arch . persistence . room . On Conflict Strategy Ċ import Ġandroid . arch . persistence . room . Query Ċ import Ġcom . example . clean architecture . data . model . User Entity Ċ import Ġio . reactivex . Comp letable Ċ import Ġio . reactivex . Single Ċ Ċ @ Dao Ċ interface ĠUser Dao Ġ{ ĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġinsert ( user Entity : ĠUser Entity ) ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġuser ĠWHERE Ġid Ġ= Ġ: id ") ĊĠĠĠ Ġfun Ġfind ById ( id : ĠString ): ĠSingle < User Entity > Ċ }