How do I tell if a row exists in a room table? Da...
# android-architecture
s
How do I tell if a row exists in a room table? Dao class
Copy code
@Query("SELECT * FROM apod WHERE id = :id")
fun getItemById(id: String): SomeEntity?
Repository
Copy code
executors.diskIO().execute {
            Timber.e("Available %s", someDao.getItemByIdD(someString).toString())
        }
I keep getting null for
someDao.getItemByIdD(someString).toString()
PS: I have Googled unsuccessfully. So that you know. PS2: Seems like the issue is hyphen or other special characters in the sqlite.
google 2
stackoverflow 6