package Ġcom . mo hs en oid . rick and mort y . data . db . dao Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ import Ġcom . mo hs en oid . rick and mort y . data . db . model . Db Episode Ċ Ċ @ Dao Ċ internal Ġinterface ĠDb Episode Dao Ġ{ ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert Episode ( entity Episode : ĠDb Episode ) ĊĊĠĠĠ Ġ@ Query ( value Ġ= Ġ" SELECT Ġ* ĠFROM Ġepisode s ") ĊĠĠĠ Ġsuspend Ġfun Ġquery All Episode s (): ĠList < Db Episode > ĊĊĠĠĠ Ġ@ Query ( value Ġ= Ġ" SELECT Ġ* ĠFROM Ġepisode s ĠLIMIT Ġ: pageSize ĠOFFSET Ġ(: page Ġ- Ġ 1 ) Ġ* Ġ: pageSize ") ĊĠĠĠ Ġsuspend Ġfun Ġquery All Episode sBy Page ( page : ĠInt , ĠpageSize : ĠInt ): ĠList < Db Episode > Ċ } Ċ