package Ġcom . mag di . m splash . db Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ import Ġcom . mag di . m splash . data . Photo Ċ import Ġkotlinx . coroutines . flow . Flow Ċ Ċ @ Dao Ċ interface ĠPhoto Dao Ġ{ ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġphoto ") ĊĠĠĠ Ġfun ĠgetAll (): ĠFlow < List < Photo >> ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġinsert All ( photos : ĠList < Photo >) Ċ Ċ }