package com.example.ayudapy import androidx.lifecycle.LiveData import androidx.room.* import androidx.room.OnConflictStrategy.REPLACE @Dao interface DaoPedido { @Query("SELECT * from pedido_save") fun getAll(): List @Insert(onConflict = REPLACE) fun insert(pedido: PedidoSave) @Delete fun delete(pedido: PedidoSave) } /* @Query("UPDATE pedido_save SET name =:studentName, nim =:studentNim, gender =:studentGen WHERE id =:studentId") fun update(studentId: Long, studentName:String, studentNim:String, studentGen:String)*/