package Ġcom . test w ther . source . local . repository . city Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ import Ġcom . test w ther . source . local . entity . City Local Entity Ċ Ċ @ Dao Ċ interface ĠCity Dao Ġ{ ĊĠĠĠ Ġ@ Query (" DELETE ĠFROM ĠCity Local Entity ") ĊĠĠĠ Ġsuspend Ġfun Ġclear () ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert ( items : ĠCity Local Entity ): ĠLong ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠCity Local Entity ĠWHERE Ġcity Name Ġ= Ġ: city Name ") ĊĠĠĠ Ġsuspend Ġfun Ġget City ByName ( city Name : ĠString ): ĠCity Local Entity ? Ċ }