Skip to content
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

Update Entry #7

Open
nicop2000 opened this issue Nov 6, 2022 · 6 comments
Open

Update Entry #7

nicop2000 opened this issue Nov 6, 2022 · 6 comments

Comments

@nicop2000
Copy link

How to update an entry?

@ivofernandes
Copy link
Contributor

The idea is to delete and save again, but the delete is bugged, will create a pull request next week I guess

ivofernandes added a commit to devexperts/cloud_kit that referenced this issue Mar 28, 2023
Tutorialwork added a commit that referenced this issue Mar 30, 2023
#7 Make delete swift, callback to flutter
@mattrltrent
Copy link

There really should be an upsert operation.

@ivofernandes
Copy link
Contributor

@mattrltrent Is just a delete followed by an add

@mattrltrent
Copy link

@ivofernandes This isn't atomic though? Let's say you want to guarantee your existing key is either updated or left alone. With this current implementation, that seems impossible. This is because the delete could succeed, but saving a new value could fail.

@ivofernandes
Copy link
Contributor

I guess for that you need to dive into iOS cloudkit documentation and see if there are other methods besides what this package is using?

@SethuSenthil
Copy link

Yup, there seems to be a decided update method as documented here: https://developer.apple.com/documentation/cloudkitjs/cloudkit/recordsbatchbuilder/1628739-update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants