I have a DAO method like this:
@Query("SELECT * FROM Libs where :field like :search")
fun findLib(search:String,field:String): List<Lib>
I want to replace field as is, but Room adds quotation marks to it in generated code. For example I want to findLib("james%","author") to generate this SQL:
SELECT * FROM Libs where author like "james%"
but it generates this :
SELECT * FROM Libs where "author" like "james%"
how can I force it to not embed in quote marks?