Return on insert.onConflictDoNothing()
Is there a way to return data if insert.onConflictDoNothing() has conflicts?
For example
I want to use
The only other solution i can think of is to read existing values from db if
For example
I want to use
insertedProducts again, and when insertedProducts returns something, it all works fine. However, when insertedProducts doesnt return something due to a conflict, it doesnt return anything and my code fails with The only other solution i can think of is to read existing values from db if
insertedProducts.length === 0