I am trying to query my database for all models with primary keys in the list. This is my request (idsList is an array containing an ArrayList):
new Select().from(PostModel.class) .where(Condition.column(PostModel$Table.ID).in(0, idsList)) .async().queryList(listener);
But Android Studio highlights the conditions in which it states
"Cannot resolve method 'where(com.raizlabs.android.dbflow.sql.builder.Condition.In)"
So, the condition. Not considered a condition? How can I request all models with primaryKey in an ArrayList?
I am using DBFlow 2.0. I can also use the regular SQL String query as a replacement, but I'm not so good at SQL, so if you could provide a SQL String query for my problem, this would be a possible workaround.
source share