|
MongoDB\Driver\Session::startTransactionStarts a transaction 説明
final public void MongoDB\Driver\Session::startTransaction(arraynull
$options = null )
Starts a multi-document transaction associated with the session. At any given
time, you can have at most one open transaction for a session. After starting
a transaction, the session object must be passed to each operation via
the Transactions can be committed through MongoDB\Driver\Session::commitTransaction, and aborted with MongoDB\Driver\Session::abortTransaction. Transactions are also automatically aborted when the session is closed from garbage collection or by explicitly calling MongoDB\Driver\Session::endSession. パラメータ
戻り値値を返しません。 エラー / 例外
変更履歴
参考
|