mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +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
|
@RawQuery
|
||||||
fun queryObject(query: SupportSQLiteQuery): List<Product>
|
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(
|
fun queryObject(request: Request): List<Product> = queryObject(
|
||||||
buildProductQuery(
|
buildProductQuery(
|
||||||
installed = request.installed,
|
installed = request.installed,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user