File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
core/persistence-kmp/src/androidMain/kotlin/org/michaelbel/movies/persistence/database/dao Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import androidx.room.Dao
5
5
import androidx.room.Insert
6
6
import androidx.room.OnConflictStrategy
7
7
import androidx.room.Query
8
+ import androidx.room.RewriteQueriesToDropUnusedColumns
8
9
import androidx.room.Transaction
9
10
import kotlinx.coroutines.flow.Flow
10
11
import org.michaelbel.movies.persistence.database.entity.MovieDb
@@ -27,6 +28,7 @@ internal interface MovieDao {
27
28
@Query(" SELECT * FROM movies WHERE movieList = :movieList ORDER BY position ASC LIMIT :limit" )
28
29
suspend fun movies (movieList : String , limit : Int ): List <MoviePojo >
29
30
31
+ @RewriteQueriesToDropUnusedColumns
30
32
@Query(" SELECT * FROM movies WHERE movieList = :movieList ORDER BY position ASC LIMIT :limit" )
31
33
suspend fun moviesMini (movieList : String , limit : Int ): List <MovieDbMini >
32
34
You can’t perform that action at this time.
0 commit comments