classReloadTls
final class ReloadTls
implements InstanceAction
uses Snapshot
Public API: explicitly declared with
@visibility public.RELOAD TLS [FOR CHANNEL channel] [NO ROLLBACK ON ERROR]: reconfigure the TLS context of a connection interface (MySQL 8.0.16 and later).
Mirrors ALTER_INSTANCE_RELOAD_TLS_ROLLBACK_ON_ERROR and, with NO ROLLBACK ON ERROR, ALTER_INSTANCE_RELOAD_TLS. Without a channel the main connection interface (mysql_main) is reconfigured; FOR CHANNEL is accepted from MySQL 8.0.21. On an error the server keeps the old context unless NO ROLLBACK ON ERROR is written. Source: https://dev.mysql.com/doc/refman/8.4/en/alter-instance.html.
$reload = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('ALTER INSTANCE RELOAD TLS FOR CHANNEL mysql_admin NO ROLLBACK ON ERROR');
[$reload->statement->action->channel?->value, $reload->statement->action->noRollbackOnError] // => ['mysql_admin', true]Properties§
public Name|null $channel = nullpublic bool $noRollbackOnError = falseMethods§
public function __construct(
public Name|null $channel = null,
public bool $noRollbackOnError = false,
)Parameters
$channel | Name|null | The channel of FOR CHANNEL, when written |
$noRollbackOnError | bool | Whether NO ROLLBACK ON ERROR is written |
public function render(Output $out): voidWrites the action.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 44
- class-const NameUse::Identifier() line 46
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ReloadTlsTestcalls