parent
c19057c52f
commit
ff13fb6a69
@ -0,0 +1,19 @@ |
|||||||
|
package io.legado.app.data.dao |
||||||
|
|
||||||
|
import androidx.room.* |
||||||
|
import io.legado.app.data.entities.ReadRecord |
||||||
|
|
||||||
|
@Dao |
||||||
|
interface ReadRecordDao { |
||||||
|
|
||||||
|
@get:Query("select * from readRecord") |
||||||
|
val all: List<ReadRecord> |
||||||
|
|
||||||
|
|
||||||
|
@Insert(onConflict = OnConflictStrategy.REPLACE) |
||||||
|
fun insert(vararg readRecord: ReadRecord) |
||||||
|
|
||||||
|
@Update |
||||||
|
fun update(vararg record: ReadRecord) |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue