classXaEnd
final class XaEnd
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.XA END xid [SUSPEND [FOR MIGRATE]]: a request to end the work of an XA transaction branch.
Mirrors Sql_cmd_xa_end. Rule: MYSQL-XA-END-001. The statement names no relation and has no facts. Source: https://dev.mysql.com/doc/refman/8.4/en/xa-statements.html. Status: Implemented.
$xa = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("xa end 'g' suspend for migrate");
[$xa->toString(), $xa->statement->option === \SqlSemantics\Platform\MySql\Statement\Server\Transaction\Xa\XaEndOption::SuspendForMigrate] // => ["XA END 'g' SUSPEND FOR MIGRATE", true]Properties§
public Xid $xidpublic XaEndOption|null $option = nullMethods§
public function __construct(public Xid $xid, public XaEndOption|null $option = null)Parameters
$xid | Xid | The transaction identifier |
$option | XaEndOption|null | SUSPEND or SUSPEND FOR MIGRATE, when written |
public function deriveStatement(Derivation $derivation): voidRefuses a format identifier the release rejects; the request names no relation and no value.
Parameters
$derivation | Derivation |
Throws
InvalidConstruction When the release does not read the format identifierCalls 2
- method-call Magnitudes::identifier() line 45
- new Magnitudes line 45
public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 53
- function-call
explodeline 55
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.