We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 556c64c commit 835e248Copy full SHA for 835e248
1 file changed
app/src/main/java/at/bitfire/icsdroid/db/dao/SubscriptionsDao.kt
@@ -11,6 +11,7 @@ import androidx.room.Embedded
11
import androidx.room.Insert
12
import androidx.room.Query
13
import androidx.room.Relation
14
+import androidx.room.Transaction
15
import androidx.room.Update
16
import at.bitfire.icsdroid.db.entity.Credential
17
import at.bitfire.icsdroid.db.entity.Subscription
@@ -46,6 +47,7 @@ interface SubscriptionsDao {
46
47
@Query("SELECT * FROM subscriptions WHERE url=:url")
48
suspend fun getByUrl(url: String): Subscription?
49
50
+ @Transaction
51
@Query("SELECT * FROM subscriptions WHERE id=:id")
52
suspend fun getWithCredentialsById(id: Long): SubscriptionWithCredential?
53
0 commit comments