-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skip error values and insert into tables #266
Comments
Hi,
|
can u please update the same method for upsert also? |
updated upsertAll method too |
I need only few fields of the table to be updated and it has to be done for n number of values, looping, which i need to perform using single upsert function instead of upsertall/saveall |
You could use the single functions like save() or upsert like below
|
If i use ignoreBatch: false, when an error value is hit, all the values are getting rolledback and table has 0 values. But if i use Ignorebatch: true, the values are getting inserted till the error value is hit and is getting exited from loop with the next correct values not inserting. Both the processes are happening when using batchCommit(continueOnError: true) |
Any update please |
Any update please |
Do we have Insert Ignore option in SqfEntity?
Requirement:
I have 3 unique values in a statement, 4th value is a duplicate, followed by 2 unique values. When using batchCommit for insertion, rollback is happening. If tried to insert without batchStart and batchCommit, only first 3 values are inserted and remaining values are getting skipped. I need only 4th value to be skipped and all the unique 5 values to insert into the table.
Can u please suggest a solution for the above issue? @hhtokpinar
The text was updated successfully, but these errors were encountered: