Q: 11
What is demonstrated by the code below?
// RawDao.kt
@Dao
interface RawDao {
@RawQuery
fun getUserViaQuery(query: SupportSQLiteQuery?): User?
}
// Usage of RawDao
...
val query =
SimpleSQLiteQuery("SELECT * FROM User WHERE id = ? LIMIT 1",
arrayOf(sortBy))
val user = rawDao.getUserViaQuery(query)
...
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.