package Ġcom . l ud ov ic . vim ont . m ang are ader . db Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ import Ġcom . l ud ov ic . vim ont . m ang are ader . entities . M anga Ċ Ċ @ Dao Ċ interface ĠM anga Dao Ġ{ ĊĠĠĠ Ġ@ Query (" SELECT Ġcount ( id ) ĠFROM Ġm anga ") ĊĠĠĠ Ġsuspend Ġfun Ġcount (): ĠInt ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġm anga ") ĊĠĠĠ Ġsuspend Ġfun ĠgetAll (): ĠList < M anga > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġm anga ĠWHERE Ġis Favorite = 1 ") ĊĠĠĠ Ġsuspend Ġfun Ġget F avorites (): ĠList < M anga > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġm anga ĠWHERE Ġid =: id ") ĊĠĠĠ Ġsuspend Ġfun Ġget ( id : ĠString ): ĠM anga ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert ( m ang as : ĠList < M anga >) ĊĊĠĠĠ Ġ@ Query (" UPDATE Ġm anga ĠSET Ġis Favorite =: is Favorite ĠWHERE Ġid =: id ") ĊĠĠĠ Ġsuspend Ġfun Ġupdate Favorite ( id : ĠString , Ġis Favorite : ĠBoolean ) ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġm anga ") ĊĠĠĠ Ġsuspend Ġfun Ġdrop () Ċ }