Skip to content
This repository was archived by the owner on Dec 9, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/src/main/java/com/example/android/hilt/data/LogDao.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ interface LogDao {
fun insertAll(vararg logs: Log)

@Query("DELETE FROM logs")
fun nukeTable()
fun deleteLogs()

@Query("SELECT * FROM logs ORDER BY id DESC")
fun selectAllLogsCursor(): Cursor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class LoggerLocalDataSource @Inject constructor(private val logDao: LogDao) : Lo

override fun removeLogs() {
executorService.execute {
logDao.nukeTable()
logDao.deleteLogs()
}
}
}