package Ġcom . example . s unk ai . herit age . database . dao Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Delete Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . Query Ċ import Ġcom . example . s unk ai . herit age . database . entities . Search History Ċ Ċ @ Dao Ċ interface ĠSearch History Dao Ġ{ ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠSearch History ĠORDER ĠBY Ġid ĠDESC ĠLIMIT Ġ 2 0 0 Ġ") ĊĠĠĠ Ġfun ĠgetAll Search History (): LiveData < List < Search History >> ĊĊĠĠĠ Ġ@ Insert ĊĠĠĠ Ġfun Ġinsert ( history : ĠSearch History ) ĊĊĠĠĠ Ġ@ Delete ĊĠĠĠ Ġfun Ġdelete ( history : ĠSearch History ) Ċ }