Login logic

This commit is contained in:
2021-09-07 14:15:25 +02:00
parent 1a71262008
commit 326cf267d2
20 changed files with 24759 additions and 67 deletions
@@ -2,6 +2,7 @@ package com.ericampire.android.androidstudycase.data.room
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy.REPLACE
import androidx.room.Query
import com.ericampire.android.androidstudycase.domain.entity.User
import kotlinx.coroutines.flow.Flow
@@ -9,7 +10,7 @@ import kotlinx.coroutines.flow.Flow
@Dao
interface UserDao {
@Insert
@Insert(onConflict = REPLACE)
fun save(user: User)
@Query("SELECT * FROM User")