package Ġcom . cyber log ite c . fre ight 9 . lib . db Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ import Ġcom . cyber log ite c . fre ight 9 . lib . model . Market Index List Ċ import Ġio . reactivex . Single ĊĊ Ċ @ Dao Ċ interface ĠMarket Index List Dao Ġ{ ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġmarket _ index _ list ĠWHERE Ġidx Cd =: id ") ĊĠĠĠ Ġfun Ġget Index ( id : ĠString ): ĠSingle < Market Index List > ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġinsert ( chart : ĠMarket Index List ) ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġmarket _ index _ list ") ĊĠĠĠ Ġfun Ġdelete All () Ċ }