findByAsStream abstract method
- @Query.new('''SELECT * FROM product_storage WHERE
(0 = :productId or product_id = :productId) and
(0 = :branchId or branch_id = :branchId) and
(0 = :storeId or store_id = :storeId) and
(0 = :currencyId or currency_id = :currencyId)''')
Stream<List<ProductStorageModel>>
findByAsStream(
- int productId,
- int branchId,
- int storeId,
- int currencyId,
)
Implementation
@Query('''SELECT * FROM product_storage WHERE
(0 = :productId or product_id = :productId) and
(0 = :branchId or branch_id = :branchId) and
(0 = :storeId or store_id = :storeId) and
(0 = :currencyId or currency_id = :currencyId)''')
Stream<List<ProductStorageModel>> findByAsStream(
int productId, int branchId, int storeId, int currencyId);