-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix SQLiteConstraintException when encryption is used
- Loading branch information
1 parent
4bc4482
commit a46232a
Showing
18 changed files
with
59 additions
and
39 deletions.
There are no files selected for viewing
5 changes: 3 additions & 2 deletions
5
app/src/main/kotlin/net/primal/android/explore/db/TrendingHashtagDao.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
app/src/main/kotlin/net/primal/android/feed/db/FeedPostDataCrossRefDao.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
app/src/main/kotlin/net/primal/android/feed/db/FeedPostRemoteKeyDao.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
app/src/main/kotlin/net/primal/android/feed/db/FeedPostSyncDao.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
app/src/main/kotlin/net/primal/android/feed/db/MediaResourceDao.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
package net.primal.android.feed.db | ||
|
||
import androidx.room.Dao | ||
import androidx.room.Upsert | ||
import androidx.room.Insert | ||
import androidx.room.OnConflictStrategy | ||
|
||
@Dao | ||
interface MediaResourceDao { | ||
|
||
@Upsert | ||
@Insert(onConflict = OnConflictStrategy.REPLACE) | ||
fun upsertAll(data: List<MediaResource>) | ||
|
||
} |
5 changes: 3 additions & 2 deletions
5
app/src/main/kotlin/net/primal/android/feed/db/NostrResourceDao.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
package net.primal.android.feed.db | ||
|
||
import androidx.room.Dao | ||
import androidx.room.Upsert | ||
import androidx.room.Insert | ||
import androidx.room.OnConflictStrategy | ||
|
||
@Dao | ||
interface NostrResourceDao { | ||
|
||
@Upsert | ||
@Insert(onConflict = OnConflictStrategy.REPLACE) | ||
fun upsertAll(data: List<NostrResource>) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
app/src/main/kotlin/net/primal/android/feed/db/PostStatsDao.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
package net.primal.android.feed.db | ||
|
||
import androidx.room.Dao | ||
import androidx.room.Upsert | ||
import androidx.room.Insert | ||
import androidx.room.OnConflictStrategy | ||
|
||
@Dao | ||
interface RepostDao { | ||
|
||
@Upsert | ||
@Insert(onConflict = OnConflictStrategy.REPLACE) | ||
fun upsertAll(data: List<RepostData>) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
app/src/main/kotlin/net/primal/android/profile/db/PostUserStatsDao.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
app/src/main/kotlin/net/primal/android/profile/db/ProfileDataDao.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
app/src/main/kotlin/net/primal/android/profile/db/ProfileStatsDao.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
package net.primal.android.profile.db | ||
|
||
import androidx.room.Dao | ||
import androidx.room.Upsert | ||
import androidx.room.Insert | ||
import androidx.room.OnConflictStrategy | ||
|
||
@Dao | ||
interface ProfileStatsDao { | ||
|
||
@Upsert | ||
@Insert(onConflict = OnConflictStrategy.REPLACE) | ||
fun upsert(data: ProfileStats) | ||
|
||
@Upsert | ||
@Insert(onConflict = OnConflictStrategy.REPLACE) | ||
fun upsertAll(data: List<ProfileStats>) | ||
|
||
} |
6 changes: 4 additions & 2 deletions
6
app/src/main/kotlin/net/primal/android/settings/muted/db/MutedUserDao.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
app/src/main/kotlin/net/primal/android/thread/db/ThreadConversationCrossRefDao.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
package net.primal.android.thread.db | ||
|
||
import androidx.room.Dao | ||
import androidx.room.Upsert | ||
import androidx.room.Insert | ||
import androidx.room.OnConflictStrategy | ||
|
||
@Dao | ||
interface ThreadConversationCrossRefDao { | ||
|
||
@Upsert | ||
@Insert(onConflict = OnConflictStrategy.REPLACE) | ||
fun connect(data: List<ThreadConversationCrossRef>) | ||
|
||
} |