classLogFile
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.
$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 $kindpublic Text $fileMethods§
public function __construct(public LogFileKind $kind, public Text $file)Parameters
$kind | LogFileKind | UNDOFILE or REDOFILE |
$file | Text | The file name |
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
LogFileTestcalls
Relations§
Instantiated in 2
- new SqlSemantics\Platform\MySql\Lowering\Server\Storage\LogfileGroupRule::file() packages/sql-semantics-mysql/src/Lowering/Server/Storage/LogfileGroupRule.php:93
- new SqlSemantics\Platform\MySql\Lowering\Server\Storage\LogfileGroupRule::file() packages/sql-semantics-mysql/src/Lowering/Server/Storage/LogfileGroupRule.php:94
Type declarations 3
- type SqlSemantics\Platform\MySql\Lowering\Server\Storage\LogfileGroupRule packages/sql-semantics-mysql/src/Lowering/Server/Storage/LogfileGroupRule.php:87
- type SqlSemantics\Platform\MySql\Statement\Server\Storage\AlterLogfileGroup packages/sql-semantics-mysql/src/Statement/Server/Storage/AlterLogfileGroup.php:44
- type SqlSemantics\Platform\MySql\Statement\Server\Storage\CreateLogfileGroup packages/sql-semantics-mysql/src/Statement/Server/Storage/CreateLogfileGroup.php:44