Dao :
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insertProducts(dataUser: List<Products>)
i am inserting list of products in the table at a single time ...i know whether the all data inserted successfully or not
i tried all the ways like return type of Long ( but it is working only for inserting single item )
Also please tell me the viewmodel code ..that how could i receive the success value or failure value..so that i can process the next step easily