Add: Query for author products in ProductDao

This commit is contained in:
machiav3lli 2022-10-11 02:58:54 +02:00
parent d1794ea3e4
commit 150f949f5e

View File

@ -82,6 +82,9 @@ interface ProductDao : BaseDao<Product> {
@RawQuery
fun queryObject(query: SupportSQLiteQuery): List<Product>
@Query("SELECT * FROM product WHERE author LIKE '%' || :author || '%' ")
fun getAuthorPackages(author: String): LiveData<List<Product>>
fun queryObject(request: Request): List<Product> = queryObject(
buildProductQuery(
installed = request.installed,