File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/main/java/com/yapp/data/local Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ dependencies {
1515 implementation(projects.core.datastore)
1616
1717 ksp(libs.androidx.room.compiler)
18+ implementation(libs.androidx.room.ktx)
1819 implementation(libs.androidx.room.runtime)
1920 implementation(libs.androidx.room.paging)
2021
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ interface AlarmDao {
1313 suspend fun insertAlarm (alarm : AlarmEntity ): Long
1414
1515 @Update
16- suspend fun updateAlarm (alarm : AlarmEntity ): Long
16+ suspend fun updateAlarm (alarm : AlarmEntity ): Int
1717
1818 @Query(" SELECT * FROM ${AlarmDatabase .DATABASE_NAME } WHERE id = :id" )
1919 suspend fun getAlarm (id : Long ): AlarmEntity ?
@@ -25,5 +25,5 @@ interface AlarmDao {
2525 suspend fun getAlarmCount (): Int
2626
2727 @Query(" DELETE FROM ${AlarmDatabase .DATABASE_NAME } WHERE id = :id" )
28- suspend fun deleteAlarm (id : Long ): Long?
28+ suspend fun deleteAlarm (id : Long ): Int
2929}
You canโt perform that action at this time.
0 commit comments