pull/32/head
parent
fac2bb44a6
commit
b1bbac7b25
@ -0,0 +1,16 @@ |
||||
package io.legado.app.data.dao |
||||
|
||||
import androidx.paging.DataSource |
||||
import androidx.room.Dao |
||||
import androidx.room.Query |
||||
import io.legado.app.data.entities.RssSource |
||||
|
||||
@Dao |
||||
interface RssSourceDao { |
||||
|
||||
@Query("SELECT * FROM rssSources") |
||||
fun observeAll(): DataSource.Factory<Int, RssSource> |
||||
|
||||
@Query("SELECT * FROM rssSources where enabled = 1") |
||||
fun observeEnabled(): DataSource.Factory<Int, RssSource> |
||||
} |
Loading…
Reference in new issue