final class LogFile
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

A log file a log file group statement adds: UNDOFILE 'file' or REDOFILE 'file'.

Source: https://dev.mysql.com/doc/refman/8.4/en/create-logfile-group.html.

Holding an undo filedoctest
$file = new \SqlSemantics\Platform\MySql\Statement\Server\Storage\LogFile(\SqlSemantics\Platform\MySql\Statement\Server\Storage\Option\LogFileKind::Undo, new \SqlSemantics\Platform\MySql\Statement\Literal\Text('u.log'));
    $file->file->value // => 'u.log'

Properties§

public LogFileKind $kind
public Text $file

Methods§

public function __construct(public LogFileKind $kind, public Text $file)

Parameters

$kindLogFileKindUNDOFILE or REDOFILE
$fileTextThe file name
public function render(Output $out): void

Writes the file.

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
Type declarations 3