withTransaction

abstract suspend fun <R> withTransaction(block: suspend () -> R): R

在事务中执行相关数据库操作

Parameters

block

数据库操作