package Ġcom . example . poly care er . data . database . dao Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ import Ġcom . example . poly care er . data . database . model . Direction Entity Ċ Ċ @ Dao Ċ interface ĠDirection s Dao Ġ{ ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġdirections ") ĊĠĠĠ Ġsuspend Ġfun ĠgetAll Directions (): ĠList < Direction Entity > ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġdirections ") ĊĠĠĠ Ġsuspend Ġfun Ġdelete All Directions () ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġset All Directions ( directions : ĠList < Direction Entity >) Ċ } Ċ