{"title":"事务处理","inframe":false,"hidden":false,"roles":{"dev":1},"pageLink":"","children":[{"configs":{"serverScript":"//本次request使用的默认数据库连接开始事务\napp.run('update WB_MISC set INT_FIELD=123 where 1=0', {\n  transaction: 'start'\n});\n//其他业务代码\n//Wb.error('发生异常');模拟发生异常事务自动回滚\n//如果所有代码没有发生异常，系统自动提交事务\napp.send('请查看module serverScript中的源码');","itemId":"module"},"children":[],"type":"module","expanded":false}],"iconCls":""}