How to make conditional query with room?

前端 未结 0 1621
猫巷女王i
猫巷女王i 2021-01-19 18:59

So I want to make a query which returns all object if parameter null or makes a where when there is a parameter. I found this:

@Query("SELECT * FROM cars         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题