package Ġcom . example . bus schedule . database . schedule Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Query Ċ import Ġkotlinx . coroutines . flow . Flow Ċ Ċ @ Dao ĠĠĠ Ġ// to Ġmake Ġthe Ġinterface Ġusable Ġwith ĠRoom Ċ interface ĠSchedule Dao { ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġschedule ĠORDER ĠBY Ġar rival _ time ĠASC ") ĊĠĠĠ Ġfun ĠgetAll (): ĠFlow < List < Schedule >> ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġschedule ĠWHERE Ġstop _ name Ġ= : stop Name ĠORDER ĠBY Ġar rival _ time ĠASC ") ĊĠĠĠ Ġfun ĠgetBy Stop Name ( stop Name : ĠString ): ĠFlow < List < Schedule >> Ċ }