package com.example.firstapp.database.dao 
 | 
  
 | 
import androidx.room.Dao 
 | 
import androidx.room.Insert 
 | 
import androidx.room.OnConflictStrategy 
 | 
import androidx.room.Query 
 | 
import androidx.room.Update 
 | 
import com.example.firstapp.database.entity.KeywordConfig 
 | 
import com.example.firstapp.database.entity.KeywordEntity 
 | 
  
 | 
@Dao 
 | 
interface KeywordDao { 
 | 
    @Query("SELECT * FROM keywords") 
 | 
     fun getAllKeywords(): List<KeywordEntity> 
 | 
  
 | 
//    @Insert(onConflict = OnConflictStrategy.REPLACE) 
 | 
//    suspend fun insertAll(keywords: List<KeywordEntity>) 
 | 
// 
 | 
//    @Query("DELETE FROM keywords") 
 | 
//    suspend fun deleteAll() 
 | 
// 
 | 
//    @Update 
 | 
//    suspend fun update(keyword: KeywordEntity) 
 | 
// 
 | 
//    @Query("SELECT * FROM keywords WHERE isEnabled = 1") 
 | 
//     fun getEnabledKeywords(): List<KeywordConfig> 
 | 
} 
 |