\Imi\Db\TransactionTTransaction

Summary

Methods
Properties
Constants
beginTransaction()
commit()
rollBack()
getTransactionLevels()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$transactionLevels
N/A

Properties

$transactionLevels

$transactionLevels : 

Type

Methods

beginTransaction()

beginTransaction() : boolean

启动一个事务

Returns

boolean

commit()

commit() : boolean

提交一个事务

Returns

boolean

rollBack()

rollBack(integer  $levels = null) : boolean

回滚事务 支持设置回滚事务层数,如果不设置则为全部回滚

Parameters

integer $levels

Returns

boolean

getTransactionLevels()

getTransactionLevels() : integer

获取事务层数

Returns

integer