mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-22 10:52:10 +00:00
Add: Query for author products in ProductDao
This commit is contained in:
parent
d1794ea3e4
commit
150f949f5e
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user