package Ġcom . sh y am . currency converter . data . source . local . database . dao Ċ Ċ import Ġandroidx . room .* Ċ import Ġcom . sh y am . currency converter . data . source . local . database . entities . Currency Rates Ċ Ċ @ Dao Ċ interface ĠCurrency Rates Dao Ġ{ ĊĊĠĠĠ Ġ@ Query (" Select Ġ* Ġfrom ĠCurrency Rates Ġwhere Ġbase Ġ= Ġ: symbol ") ĊĠĠĠ Ġfun Ġget Rates ( symbol : ĠString ): ĠCurrency Rates ? ĊĊĠĠĠ Ġ@ Transaction ĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġinsert OrUpdate Currency Rates ( currency Rates : ĠCurrency Rates ) Ċ Ċ }