mirror of https://github.com/Ashinch/ReadYou.git
23 lines
422 B
Kotlin
23 lines
422 B
Kotlin
|
package me.ash.reader.data.feed
|
||
|
|
||
|
import androidx.room.*
|
||
|
|
||
|
@Dao
|
||
|
interface FeedDao {
|
||
|
@Query(
|
||
|
"""
|
||
|
SELECT * FROM feed
|
||
|
WHERE accountId = :accountId
|
||
|
"""
|
||
|
)
|
||
|
suspend fun queryAll(accountId: Int): List<Feed>
|
||
|
|
||
|
@Insert
|
||
|
suspend fun insertList(feed: List<Feed>): List<Long>
|
||
|
|
||
|
@Update
|
||
|
suspend fun update(vararg feed: Feed)
|
||
|
|
||
|
@Delete
|
||
|
suspend fun delete(vararg feed: Feed)
|
||
|
}
|