开启事务

1
Db::startTrans();

事务回滚

1
Db::rollback();

提交事务

1
Db::commit();  

一旦commit就无法回滚了