Skip to content

Instantly share code, notes, and snippets.

@hiteshchopra11
Created September 14, 2021 06:35
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 hiteshchopra11/dbeac150d8fadb72a94d74ba69e845a6 to your computer and use it in GitHub Desktop.
Save hiteshchopra11/dbeac150d8fadb72a94d74ba69e845a6 to your computer and use it in GitHub Desktop.
val request = call.receive<NoteRequest>()
val result = db.insert(NotesEntity) {
set(it.note, request.note)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment