package Ġio . horizontal systems . eos kit . storage Ċ Ċ import Ġandroidx . room .* Ċ import Ġandroidx . sqlite . db . Support SQLite Query Ċ import Ġio . horizontal systems . eos kit . models . Action Ċ Ċ @ Dao Ċ interface ĠAction Dao Ġ{ ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġinsert All ( transactions : ĠList < Action >) ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġactions ĠWHERE Ġaccount Ġ= Ġ' transfer ' ĠORDER ĠBY Ġsequence ĠDESC ") ĊĠĠĠ Ġfun ĠgetAll (): ĠList < Action > ĊĊĠĠĠ Ġ@ Raw Query ĊĠĠĠ Ġfun Ġget Sql ( query : ĠSupport SQLite Query ): ĠList < Action > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġactions ĠORDER ĠBY Ġsequence ĠDESC ĠLIMIT Ġ 1 ") ĊĠĠĠ Ġfun ĠgetLast (): ĠAction ? ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġactions ") ĊĠĠĠ Ġfun Ġdelete All () Ċ } Ċ