enum PreparedAction: string
Public API: explicitly declared with @visibility public.

The steps of a two-phase commit.

Mirrors TRANS_STMT_PREPARE, TRANS_STMT_COMMIT_PREPARED and TRANS_STMT_ROLLBACK_PREPARED of PostgreSQL's TransactionStmtKind. The value is the keyword spelling. Source: https://www.postgresql.org/docs/17/sql-prepare-transaction.html, https://www.postgresql.org/docs/17/sql-commit-prepared.html, https://www.postgresql.org/docs/17/sql-rollback-prepared.html.

Reading the step of a COMMIT PREPAREDdoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("COMMIT PREPARED 'x'");
    $operation->statement->action // => \SqlSemantics\Platform\PostgreSql\Statement\Utility\Transaction\PreparedAction::Commit

Cases§

case Prepare = 'PREPARE TRANSACTION'
case Commit = 'COMMIT PREPARED'
case Rollback = 'ROLLBACK PREPARED'

Test cases 1§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1

Relations§

Constant reads 3
Type declarations 1