florent37 / Freezer

A simple & fluent Android ORM, how can it be easier ? RxJava2 compatible
Apache License 2.0
328 stars 44 forks source link

does it support the query like sql "in" statement? #19

Closed OVERSKY2003 closed 8 years ago

OVERSKY2003 commented 8 years ago

now I need to use a loop to get the records for multiple ids. Can I use something like "in" of sql to query once and get all the records

"select * from table where id in (10,20,30)"

florent37 commented 8 years ago

Hello, nope It's not implémentés yet but I can do it for you ;) Le 6 mai 2016 19:18, "OVERSKY2003" notifications@github.com a écrit :

now I need to use a loop to get the records for multiple ids. Can I use something like "in" of sql to query once and get all the records

"select * from table where id in (10,20,30)"

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/florent37/Freezer/issues/19

OVERSKY2003 commented 8 years ago

Thank you very much for your quick response. I also accounted the same issue #17 when access database in multithread . Now I use synchronized for all db manipulations(both read and write) , so that only one thread to access db to prevent these issue. Any good suggestion for this?

florent37 commented 8 years ago

done ;) check the 2.0.2