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.

Reading the requestdoctest
$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 = false

Methods§

public function __construct(public bool $convertXid = false)

Parameters

$convertXidboolWhether CONVERT XID is written: the identifiers are listed in hexadecimal (MySQL 5.7 and later)
public function deriveStatement(Derivation $derivation): void

Records the rows that list the prepared transactions.

Parameters

$derivationDerivation
Calls 2
public function render(Output $out): void

Writes the request.

Parameters

$outOutput
Calls 1

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§

Instantiated in 2