package Ġcom . gun ess . lott ie . data . db Ċ Ċ import Ġandroidx . room .* Ċ import Ġcom . gun ess . lott ie . data . db . Lot tie Database . Companion . TABLE _ B LOG Ċ import Ġcom . gun ess . lott ie . data . dto . Blog Ċ import Ġkotlinx . coroutines . flow . Flow Ċ Ċ @ Dao Ċ interface ĠBlog Dao Ġ{ ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġadd ( blog : ĠBlog ): ĠLong ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġadd All ( list : ĠList < Blog >) ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġ$ TABLE _ B LOG ") ĊĠĠĠ Ġfun Ġobserve All (): ĠFlow < List < Blog >> ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġ$ TABLE _ B LOG ") ĊĠĠĠ Ġsuspend Ġfun Ġclear () ĊĊĠĠĠ Ġ@ Transaction ĊĠĠĠ Ġsuspend Ġfun Ġset All ( list : ĠList < Blog >) Ġ{ ĊĠĠĠĠĠĠĠ Ġclear () ĊĠĠĠĠĠĠĠ Ġadd All ( list ) ĊĠĠĠ Ġ} Ċ } Ċ