enumTransactionMode
enum TransactionMode: string
Public API: explicitly declared with
@visibility public.One characteristic a transaction is started with or set to.
Mirrors the transaction_mode_item options of PostgreSQL's TransactionStmt: the isolation level, the access mode and the deferrable mode. The value is the keyword spelling. A list may repeat a characteristic; the server applies the items in order, so the last one of a characteristic is in effect. Source: https://www.postgresql.org/docs/17/sql-set-transaction.html.
\SqlSemantics\Platform\PostgreSql\Statement\Utility\Transaction\TransactionMode::ReadOnly->parameter() // => 'transaction_read_only'Cases§
case ReadUncommitted = 'ISOLATION LEVEL READ UNCOMMITTED'case ReadCommitted = 'ISOLATION LEVEL READ COMMITTED'case RepeatableRead = 'ISOLATION LEVEL REPEATABLE READ'case Serializable = 'ISOLATION LEVEL SERIALIZABLE'case ReadOnly = 'READ ONLY'case ReadWrite = 'READ WRITE'case Deferrable = 'DEFERRABLE'case NotDeferrable = 'NOT DEFERRABLE'Methods§
public function parameter(): stringAnswers the name of the configuration parameter the item sets.
Returns
stringCalls 8
- class-const TransactionMode::ReadUncommitted() line 38
- class-const TransactionMode::ReadCommitted() line 38
- class-const TransactionMode::RepeatableRead() line 38
- class-const TransactionMode::Serializable() line 38
- class-const TransactionMode::ReadOnly() line 39
- class-const TransactionMode::ReadWrite() line 39
- class-const TransactionMode::Deferrable() line 40
- class-const TransactionMode::NotDeferrable() line 40
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 2
Relations§
Constant reads 10
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\TransactionRule packages/sql-semantics-postgres/src/Lowering/Utility/TransactionRule.php:48
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\TransactionRule packages/sql-semantics-postgres/src/Lowering/Utility/TransactionRule.php:49
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\TransactionRule packages/sql-semantics-postgres/src/Lowering/Utility/TransactionRule.php:50
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\TransactionRule packages/sql-semantics-postgres/src/Lowering/Utility/TransactionRule.php:51
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\TransactionRule packages/sql-semantics-postgres/src/Lowering/Utility/TransactionRule.php:52
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\TransactionRule packages/sql-semantics-postgres/src/Lowering/Utility/TransactionRule.php:53
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\TransactionRule packages/sql-semantics-postgres/src/Lowering/Utility/TransactionRule.php:54
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\TransactionRule packages/sql-semantics-postgres/src/Lowering/Utility/TransactionRule.php:55
- class-const SqlSemantics\Platform\PostgreSql\Statement\Utility\Transaction\Begin::__construct() packages/sql-semantics-postgres/src/Statement/Utility/Transaction/Begin.php:43
- class-const SqlSemantics\Platform\PostgreSql\Statement\Utility\Transaction\SetTransaction::__construct() packages/sql-semantics-postgres/src/Statement/Utility/Transaction/SetTransaction.php:45