package Ġcom . ky bers wap . android . data . db Ċ Ċ import Ġandroidx . room .* Ċ import Ġcom . ky bers wap . android . domain . model . Local Limit Order Ċ import Ġio . reactivex . Flow able Ċ Ċ /** Ċ Ġ* ĠData ĠAccess ĠObject Ġfor Ġthe Ġcurrent _ order Ġtable . Ċ Ġ*/ Ċ @ Dao Ċ interface ĠLocal Limit Order Dao Ġ{ ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġinsert Order ( local Limit Order : ĠLocal Limit Order ) ĊĊĠĠĠ Ġ@ Update ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġupdate Order ( local Limit Order : ĠLocal Limit Order ) ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* Ġfrom Ġcurrent _ orders Ġwhere Ġuser Addr Ġ= Ġ: address ") ĊĠĠĠ Ġfun Ġfind Local Limit OrderBy Address Flow able ( address : ĠString ): ĠFlow able < Local Limit Order > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* Ġfrom Ġcurrent _ orders Ġwhere Ġuser Addr Ġ= Ġ: address ĠLIMIT Ġ 1 ") ĊĠĠĠ Ġfun Ġfind Local Limit OrderBy Address ( address : ĠString ): ĠLocal Limit Order ? ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġcurrent _ orders ") ĊĠĠĠ Ġfun Ġdelete All Local Limit Orders () ĊĊĠĠĠ Ġ@ Delete ĊĠĠĠ Ġfun Ġdelete ( model : ĠLocal Limit Order ) ĊĊĠĠĠ Ġ@ get : Query (" SELECT Ġ* ĠFROM Ġcurrent _ orders ") ĊĠĠĠ Ġval Ġall : ĠFlow able < List < Local Limit Order >> Ċ } ĊĊ