php8.5
Home/ Manual/ driver / session/ MongoDB\Driver\Session::getTransactionState

MongoDB\Driver\Session::getTransactionState

PHP function Edit on GitHub ✎

(mongodb >=1.7.0)

Returns the current transaction state for this session

Description

MongoDB\Driver\Session::getTransactionState(): string

Returns the transaction state for this session.

Parameters Parameters

Return Values

Returns the current transaction state for this session.

Errors/Exceptions

See Also

  • MongoDB\Driver\Session::isInTransaction
  • MongoDB\Driver\Session::getTransactionOptions

Source: reference/mongodb/mongodb/driver/session/gettransactionstate.xml · from the official PHP manual (php/doc-en)