Skip to content

Instantly share code, notes, and snippets.

@himchanyoon9212
Created March 1, 2022 16:19
@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