classXaRecover
final class XaRecover
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.XA RECOVER [CONVERT XID]: a request to list the prepared XA transactions.
Mirrors Sql_cmd_xa_recover. Rule: MYSQL-XA-RECOVER-001. Its rows are those of MYSQL-ADMIN-ROWS-001. The statement names no relation. Source: https://dev.mysql.com/doc/refman/8.4/en/xa-statements.html. Status: Implemented.
$xa = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("xa recover convert xid");
[$xa->toString(), $xa->statement->convertXid] // => ["XA RECOVER CONVERT XID", true]Properties§
public bool $convertXid = falseMethods§
public function __construct(public bool $convertXid = false)Parameters
$convertXid | bool | Whether CONVERT XID is written: the identifiers are listed in hexadecimal (MySQL 5.7 and later) |
public function deriveStatement(Derivation $derivation): voidRecords the rows that list the prepared transactions.
Parameters
$derivation | Derivation |
Calls 2
- method-call AdminRows::recover() line 42
- new AdminRows line 42
public function render(Output $out): voidTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
XaRecoverTestcalls
Relations§
Instantiated in 2
- new SqlSemantics\Platform\MySql\Lowering\Server\Transaction\XaRule::statement() packages/sql-semantics-mysql/src/Lowering/Server/Transaction/XaRule.php:82
- new SqlSemantics\Platform\MySql\Lowering\Server\Transaction\XaRule::statement() packages/sql-semantics-mysql/src/Lowering/Server/Transaction/XaRule.php:83