pull/32/head
gedoor 6 years ago
parent c0a1a56eec
commit ac9b10c8d7
  1. 3
      app/src/main/java/io/legado/app/data/dao/BookGroupDao.kt

@ -3,6 +3,7 @@ package io.legado.app.data.dao
import androidx.paging.DataSource
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import io.legado.app.data.entities.BookGroup
@ -15,6 +16,6 @@ interface BookGroupDao {
@get:Query("SELECT MAX(groupId) FROM book_groups")
val maxId: Int
@Insert
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insert(bookGroup: BookGroup)
}
Loading…
Cancel
Save