i try to do the following:
@Query("SELECT COUNT(s_row) FROM table WHERE data = :data")
fun isDataExist(data: String): Boolean{
if (*QUERY_RETURN*) > 0{
return true
} else {
return false
}
}
so my question is is there a way to have a body to test the query return and then return a boolean if the data already exist in the database?