This commit is contained in:
Ваше Имя
2025-09-24 15:48:24 +04:00
parent 7b78d9bfc2
commit 3c9f2eaf15
8 changed files with 132 additions and 48 deletions
@@ -0,0 +1,15 @@
package com.example.myapplication
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import kotlinx.coroutines.flow.Flow
@Dao
interface NoteDao {
@Insert
suspend fun insert(note: NoteEntity)
@Query("SELECT * FROM notes")
fun getAll(): Flow<List<NoteEntity>>
}