pull/32/head
kunfei 5 years ago
parent b78b2e901d
commit 522739a246
  1. 1
      app/src/main/java/io/legado/app/data/AppDatabase.kt
  2. 13
      app/src/main/java/io/legado/app/data/dao/BookChapterDao.kt

@ -50,6 +50,7 @@ abstract class AppDatabase : RoomDatabase() {
abstract fun bookDao(): BookDao abstract fun bookDao(): BookDao
abstract fun bookGroupDao(): BookGroupDao abstract fun bookGroupDao(): BookGroupDao
abstract fun bookSourceDao(): BookSourceDao abstract fun bookSourceDao(): BookSourceDao
abstract fun bookChapterDao(): BookChapterDao
abstract fun replaceRuleDao(): ReplaceRuleDao abstract fun replaceRuleDao(): ReplaceRuleDao
abstract fun searchBookDao(): SearchBookDao abstract fun searchBookDao(): SearchBookDao
abstract fun searchKeywordDao(): SearchKeywordDao abstract fun searchKeywordDao(): SearchKeywordDao

@ -0,0 +1,13 @@
package io.legado.app.data.dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import io.legado.app.data.entities.BookChapter
interface BookChapterDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insert(vararg bookChapter: BookChapter)
}
Loading…
Cancel
Save