package llc.arma.ble.data.db

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import kotlinx.coroutines.flow.Flow
import llc.arma.ble.data.model.BleNameEntity

@Dao
interface BleNameDao {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    suspend fun save(names: List<BleNameEntity>)

    @Query("select * from ble_name")
    fun getAllFlow(): Flow<List<BleNameEntity>>

}