Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
User DAO with transaction
abstract class UserDao {
abstract fun insert(user: User)
abstract fun update(user: User)
fun insertAndUpdate(user: User) {
update(user.also { })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment