package com.bearya.data.dao

import androidx.paging.DataSource
import androidx.room.Dao
import androidx.room.Query
import com.bearya.data.entity.Chapter

@Dao
interface ChapterDao {

    @Query("SELECT * FROM Chapter WHERE `enable` = 1 AND `level`= :grade")
    fun findChaptersByGradeLevel(grade: Int): DataSource.Factory<Int, Chapter>

}