pull/32/head
parent
160793f3ae
commit
f5045bdc08
@ -0,0 +1,7 @@ |
||||
package io.legado.app.constant |
||||
|
||||
object DbTable { |
||||
const val books = "books" |
||||
const val book_sources = "book_sources" |
||||
const val replace_rules = "replace_rules" |
||||
} |
@ -0,0 +1,14 @@ |
||||
package io.legado.app.data.dao |
||||
|
||||
import androidx.paging.DataSource |
||||
import androidx.room.Dao |
||||
import androidx.room.Query |
||||
import io.legado.app.constant.DbTable |
||||
import io.legado.app.data.entities.BookSource |
||||
|
||||
@Dao |
||||
interface BookSourceDao { |
||||
|
||||
@Query("select * from ${DbTable.book_sources} where ") |
||||
fun observeAll(): DataSource.Factory<Int, BookSource> |
||||
} |
Loading…
Reference in new issue