Files
labs-mobile-applications/app/src/main/java/com/example/myapplication/NoteDao.kt
T

15 lines
307 B
Kotlin
Raw Normal View History

2025-09-24 15:48:24 +04:00
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>>
}