Created
May 23, 2020 07:04
-
-
Save deepanshu42/9bb68382bf4cd3877a08fb2c341f1685 to your computer and use it in GitHub Desktop.
Simple Queries in Room Dao Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Dao | |
| interface UserDao { | |
| @Query("SELECT * FROM users") | |
| fun loadAllUsers(): Array<User> | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment