package Ġcom . example . shopping list . data . db Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . room .* Ċ import Ġcom . example . shopping list . data . db . entities . Shopping Item Ċ Ċ @ Dao Ċ interface ĠShop ping Dao Ġ{ ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġupsert ( item : ĠShop ping Item ) ĊĊĠĠĠ Ġ@ Delete ĊĠĠĠ Ġsuspend Ġfun Ġdelete ( item : ĠShop ping Item ) ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġshopping _ items ") ĊĠĠĠ Ġfun ĠgetAll Shopping Items (): ĠLive Data < List < Shopping Item >> Ċ }