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

Batch updates do not need any operator #750

Merged
merged 4 commits into from
Apr 5, 2020
Merged

Conversation

groue
Copy link
Owner

@groue groue commented Apr 5, 2020

It was ill-advised to define an <- operator for batch updates, a feature that is only known and used by a few users.

Lesson learned: Swift operators must be obvious and undisputed, or they just become a nuisance which conflict with other librairies.

Batch updates are now based on the set(to:) method:

// UPDATE player SET score = 0
try Player.updateAll(db, Column("score").set(to: 0))

@groue groue added this to the GRDB 5 milestone Apr 5, 2020
@groue groue mentioned this pull request Apr 5, 2020
42 tasks
@groue groue merged commit bf07c49 into GRDB5 Apr 5, 2020
@groue groue deleted the dev/assignment-without-operator branch April 5, 2020 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant