ylliX - Online Advertising Network
Issue with Room DB

Issue with Room DB


Issue with Room DB

Hellos guys i am trying to create a db that i can input items and use recycleview,i use the debuger from one of androids tutorial and i have the following error with my Dao file The file:

package com.example.dbtest4

import androidx.room.Dao import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Query import kotlinx.coroutines.flow.Flow

@Dao interface WordDao {

@Query("SELECT * FROM word_table ORDER BY word ASC") fun getAlphabetizedWords(): Flow<List<Word>> @Insert(onConflict = OnConflictStrategy.IGNORE) suspend fun insert(word: Word) @Query("DELETE FROM word_table") suspend fun deleteAll() 

}

The error:

submitted by /u/gioannireformed
[comments]



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *