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.

Reading the parameter an item setsdoctest
\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(): string

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
Type declarations 1