标签:ase 隐式 pes 返回 sql sse getter let sources
fun SQLiteDatabase.inTransaction(func: (SQLiteDatabase) -> Unit) {
beginTransaction()
try {
func(this)
setTransactionSuccessful()
} finally {
endTransaction()
}
}
db.inTransaction {
it.db.delete("users", "first_name = ?", arrayOf("Jake"))
}
标签:ase 隐式 pes 返回 sql sse getter let sources
原文地址:https://www.cnblogs.com/lshare/p/11334513.html