package com.themes.fancy.keyboard.keyboard.myroom;

import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;


import com.themes.fancy.keyboard.keyboard.data.KbSource;

import java.util.List;

@Dao
public interface ThemesDao {

    @Insert(onConflict = OnConflictStrategy.IGNORE)
      long insertData(KbSource data);


    @Query("select * from KbSource where `like` = :isLike")
    LiveData<List<KbSource>> queryAllLike(boolean isLike);


    @Query("select * from KbSource where `download` = :idDownload")
    LiveData<List<KbSource>> queryAllDownload(boolean idDownload);

    @Query("select * from KbSource  where titleName = :title And  `like` = :isLike")
    KbSource queryIsLike(String title,boolean isLike);




}
