enumPreparedAction
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.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("COMMIT PREPARED 'x'");
$operation->statement->action // => \SqlSemantics\Platform\PostgreSql\Statement\Utility\Transaction\PreparedAction::CommitCases§
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
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\TransactionRule::statement() packages/sql-semantics-postgres/src/Lowering/Utility/TransactionRule.php:88
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\TransactionRule::statement() packages/sql-semantics-postgres/src/Lowering/Utility/TransactionRule.php:89
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\TransactionRule::statement() packages/sql-semantics-postgres/src/Lowering/Utility/TransactionRule.php:90