/MyDataDao.kt Secret
Created
March 1, 2022 16:19
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 MyDataDao { | |
@Insert(onConflict = OnConflictStrategy.IGNORE) | |
suspend fun insert(myData : MyData) | |
@Query("SELECT * FROM myData_table") | |
suspend fun getAll() : List<MyData> | |
@Query("DELETE FROM myData_table") | |
suspend fun removeAll() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment