apiargs-function-with_transaction-param.yaml 830 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
arg_name: param
name: $session
type: :php:`MongoDB\\Driver\\Session <mongodb-driver-session>`
description: |
  A client session used to execute the transaction.
interface: phpmethod
operation: ~
optional: false
---
arg_name: param
name: $callback
type: callback
description: |
  A callback that will be run inside the transaction. The callback must accept a
  :php:`MongoDB\\Driver\\Session <mongodb-driver-session>` object as first
  argument.
interface: phpmethod
operation: ~
optional: false
---
arg_name: param
name: $transactionOptions
type: array
description: |
  Transaction options, which will be passed to
  :php:`MongoDB\\Driver\\Session::startTransaction <mongodb-driver-session.starttransaction>`.
  See the extension documentation for a list of supported options.
interface: phpmethod
operation: ~
optional: true
...