We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Trying bulk insert on a table with a unique constraint
await dbContext.BulkInsertAsync(collection, new BulkConfig { ConflictOption = ConflictOption.Ignore }, cancellationToken: stoppingToken);
getting error
duplicate key value violates unique constraint "ix_foo"
It seems that the conflict option is only implemented for mysql: https://github.com/search?q=repo%3Aborisdj%2FEFCore.BulkExtensions+conflictoption&type=code
Postgres has an "ON CONFLICT DO (NOTHING|UPDATE)" clause: https://www.postgresql.org/docs/current/sql-insert.html
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Trying bulk insert on a table with a unique constraint
getting error
It seems that the conflict option is only implemented for mysql: https://github.com/search?q=repo%3Aborisdj%2FEFCore.BulkExtensions+conflictoption&type=code
Postgres has an "ON CONFLICT DO (NOTHING|UPDATE)" clause: https://www.postgresql.org/docs/current/sql-insert.html
The text was updated successfully, but these errors were encountered: