File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/database Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import androidx .annotation .Nullable ;
44import androidx .room .Dao ;
55import androidx .room .Query ;
6+ import androidx .room .RewriteQueriesToDropUnusedColumns ;
67
78import org .schabi .newpipe .database .history .model .StreamHistoryEntity ;
89import org .schabi .newpipe .database .history .model .StreamHistoryEntry ;
@@ -67,6 +68,7 @@ public Flowable<List<StreamHistoryEntity>> listByService(final int serviceId) {
6768 @ Query ("DELETE FROM " + STREAM_HISTORY_TABLE + " WHERE " + JOIN_STREAM_ID + " = :streamId" )
6869 public abstract int deleteStreamHistory (long streamId );
6970
71+ @ RewriteQueriesToDropUnusedColumns
7072 @ Query ("SELECT * FROM " + STREAM_TABLE
7173
7274 // Select the latest entry and watch count for each stream id on history table
Original file line number Diff line number Diff line change 22
33import androidx .room .Dao ;
44import androidx .room .Query ;
5+ import androidx .room .RewriteQueriesToDropUnusedColumns ;
56import androidx .room .Transaction ;
67
78import org .schabi .newpipe .database .BasicDAO ;
@@ -52,6 +53,7 @@ default Flowable<List<PlaylistStreamEntity>> listByService(final int serviceId)
5253 + " WHERE " + JOIN_PLAYLIST_ID + " = :playlistId" )
5354 Flowable <Integer > getMaximumIndexOf (long playlistId );
5455
56+ @ RewriteQueriesToDropUnusedColumns
5557 @ Transaction
5658 @ Query ("SELECT * FROM " + STREAM_TABLE + " INNER JOIN "
5759 // get ids of streams of the given playlist
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import androidx.room.Dao
44import androidx.room.Insert
55import androidx.room.OnConflictStrategy
66import androidx.room.Query
7+ import androidx.room.RewriteQueriesToDropUnusedColumns
78import androidx.room.Transaction
89import io.reactivex.rxjava3.core.Flowable
910import io.reactivex.rxjava3.core.Maybe
@@ -31,6 +32,7 @@ abstract class SubscriptionDAO : BasicDAO<SubscriptionEntity> {
3132 )
3233 abstract fun getSubscriptionsFiltered (filter : String ): Flowable <List <SubscriptionEntity >>
3334
35+ @RewriteQueriesToDropUnusedColumns
3436 @Query(
3537 """
3638 SELECT * FROM subscriptions s
@@ -47,6 +49,7 @@ abstract class SubscriptionDAO : BasicDAO<SubscriptionEntity> {
4749 currentGroupId : Long
4850 ): Flowable <List <SubscriptionEntity >>
4951
52+ @RewriteQueriesToDropUnusedColumns
5053 @Query(
5154 """
5255 SELECT * FROM subscriptions s
You can’t perform that action at this time.
0 commit comments