package com.bearya.data.dao

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

@Dao
interface SectionDao {

    @Query("SELECT * FROM Section WHERE `enable` = 1 AND `chapterId`= :chapterId")
    fun findSectionsByChapterId(chapterId: Int): DataSource.Factory<Int, Section>

}