@Dao
interface ExampleDao {
@Query("SELECT * FROM example_table WEHRE id = :id")
fun getExample(id: Int): LiveData<Example>
}
What the above query returns if there is no matched id in the database? I guess it couldn't be null because the return type is non-nullable.
And does query return null if the return type is nullable? like LiveData<Example>? or LiveData<Example?>