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
Hello,
My model as the primary key set auto
class MyModel { @PrimaryKey(auto: true) int id; // .. other fields }
When I'm trying to insert many of those object at once using insertMany, I got the error that the table has one more column that the values supplied:
await _myModelBean.insertMany(myModels);
table myTable has 3 columns but 2 values were supplied
This works if I insert using a loop like below, but this is probably much heavier in term of performance:
for (final myModel in myModels) { await _myModelBean.insert(myModel); }
How to use "insertMany" with the primary key set to auto generation?
Thanks in advance
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
My model as the primary key set auto
When I'm trying to insert many of those object at once using insertMany, I got the error that the table has one more column that the values supplied:
table myTable has 3 columns but 2 values were supplied
This works if I insert using a loop like below, but this is probably much heavier in term of performance:
How to use "insertMany" with the primary key set to auto generation?
Thanks in advance
The text was updated successfully, but these errors were encountered: