package Ġcom . weather app . data . database Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ import Ġcom . weather app . data . database . entities . Place Entity Ċ import Ġkotlinx . coroutines . flow . Flow Ċ Ċ @ Dao Ċ interface ĠPlace Dao Ġ{ ĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert ( place : ĠPlace Entity ) ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġplaces ") ĊĠĠĠ Ġfun Ġload All (): ĠFlow < List < Place Entity >> ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġplaces ĠWHERE Ġname Ġ= Ġ: postal Code ") ĊĠĠĠ Ġfun Ġload Place ( postal Code : ĠString ): ĠFlow < Place Entity > ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġplaces ĠWHERE Ġpostal Code Ġ= Ġ: postal Code ") ĊĠĠĠ Ġsuspend Ġfun Ġdelete Place ( postal Code : ĠString ) Ċ }