File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
saved-sites/saved-sites-store/src/main/java/com/duckduckgo/savedsites/store Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ import kotlinx.coroutines.flow.Flow
31
31
32
32
@Dao
33
33
interface SavedSitesEntitiesDao {
34
-
35
34
@Insert(onConflict = OnConflictStrategy .REPLACE )
36
35
fun insert (entity : Entity )
37
36
@@ -93,7 +92,10 @@ interface SavedSitesEntitiesDao {
93
92
)
94
93
95
94
@Transaction
96
- fun updateModified (entities : List <String >, lastModified : String = DatabaseDateFormatter .iso8601()) {
95
+ fun updateModified (
96
+ entities : List <String >,
97
+ lastModified : String = DatabaseDateFormatter .iso8601(),
98
+ ) {
97
99
entities.forEach {
98
100
updateModified(it, lastModified)
99
101
}
@@ -114,9 +116,7 @@ interface SavedSitesEntitiesDao {
114
116
@Query(
115
117
" select count(*) from entities where entities.url LIKE :domain and entities.deleted = 0 " ,
116
118
)
117
- fun countEntitiesByUrl (
118
- domain : String ,
119
- ): Int
119
+ fun countEntitiesByUrl (domain : String ): Int
120
120
121
121
@Query(" select CAST(COUNT(*) AS BIT) from entities where entities.deleted = 0" )
122
122
fun hasEntities (): Boolean
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ import kotlinx.coroutines.flow.Flow
34
34
35
35
@Dao
36
36
interface SavedSitesRelationsDao {
37
-
38
37
@Insert(onConflict = OnConflictStrategy .REPLACE )
39
38
fun insert (relation : Relation ): Long
40
39
@@ -83,7 +82,10 @@ interface SavedSitesRelationsDao {
83
82
@Query(
84
83
" select * from relations where relations.entityId = :entityId and relations.folderId = :folderId" ,
85
84
)
86
- fun relation (folderId : String , entityId : String ): Relation ?
85
+ fun relation (
86
+ folderId : String ,
87
+ entityId : String ,
88
+ ): Relation ?
87
89
88
90
@Query(" select * from relations where relations.entityId = :entityId" )
89
91
fun relationsByEntityId (entityId : String ): List <Relation >
You can’t perform that action at this time.
0 commit comments