maskarade/Android-Orma

Reset where clause in updater

Opened this issue · 2 comments

Is there a way to reset whereClause in _Updater? I.g. I want reuse updater with different model instances, but where() method alway concatenate to one big WHERE clause

gfx commented

Why and how do you want to reuse *_Updater? Do you have an example code that shows the reuse is useful?

We have a different lists of entities, mixed with cached ones and fresh ones, and on some of them we want to execute insert, or on some of them update, and we don't want to create updater for each item.