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

Make "where" optional for update #115

Closed
zeljkot opened this issue Jun 6, 2017 · 1 comment
Closed

Make "where" optional for update #115

zeljkot opened this issue Jun 6, 2017 · 1 comment

Comments

@zeljkot
Copy link

zeljkot commented Jun 6, 2017

Sometimes it is necessary to update all rows in the table. Current syntax requires "where" condition. Make it optional or provide noop condition.

@zeljkot
Copy link
Author

zeljkot commented Jun 6, 2017

Workaround:

UpdateStatement(Entities, null)
    .also { update -> update["x"] = y}
    .execute(TransactionManager.current())

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

2 participants