package Ġcom . ru vi apps . t ack ling ne ph rot ic . database . dao Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ import Ġcom . ru vi apps . t ack ling ne ph rot ic . database . entities . Doctor Ċ import Ġcom . ru vi apps . t ack ling ne ph rot ic . database . entities . TableName Ċ Ċ @ Dao Ċ interface ĠDoctor Dao Ġ{ ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= On Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert Doctor ( doctor : ĠDoctor ) ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= On Conflict Strategy . REPLACE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert All Do ctors ( var arg Ġdoctor : ĠDoctor ) ĊĊĠĠĠ Ġ@ Query (" Select Ġ* Ġfrom Ġ" Ġ+ ĠTable Name . Do ctors Table ) ĊĠĠĠ Ġsuspend Ġfun ĠgetAll Do ctors () Ġ: ĠList < Doctor >? ĊĊĠĠĠ Ġ@ Query (" Select Ġ* Ġfrom Ġ" Ġ+ ĠTable Name . Do ctors Table Ġ+ Ġ" Ġwhere Ġ" ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ+ ĠDoctor . Column Doctor Id Ġ+ Ġ" Ġ= Ġ: id ") ĊĠĠĠ Ġsuspend Ġfun Ġget Doctor ById ( id Ġ: ĠLong ) Ġ: ĠDoctor ? Ċ }