Skip to content

Instantly share code, notes, and snippets.

@manuelernesto
Created August 20, 2020 18:44
Show Gist options
  • Save manuelernesto/358d433d8d15f610024c36058b00503d to your computer and use it in GitHub Desktop.
Save manuelernesto/358d433d8d15f610024c36058b00503d to your computer and use it in GitHub Desktop.
@Dao
interface PalestranteDAO {
@Insert
suspend fun salvar(palestrante: Palestrante)
@Query("SELECT * FROM tb_palestrante")
suspend fun buscarTodos(): List<Palestrante>
@Update
suspend fun actualizar(palestrante: Palestrante)
@Delete
suspend fun apagar(palestrante: Palestrante)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment