Skip to content

Instantly share code, notes, and snippets.

@manuelernesto
Created August 21, 2020 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manuelernesto/e3fa006f916ee1fb86538e7ebece1917 to your computer and use it in GitHub Desktop.
Save manuelernesto/e3fa006f916ee1fb86538e7ebece1917 to your computer and use it in GitHub Desktop.
@Dao
interface DAO {
@Insert
suspend fun salvar(user: Utilizador)
@Query("SELECT * FROM db.user")
suspend fun buscarTodos(): List<Utilizador>
@Update
suspend fun actualizar(user: Utilizador)
@Delete
suspend fun apagar(user: Utilizador)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment