classLogfileGroupRule
final class LogfileGroupRule
Lowers the log file group statements.
Rule: MYSQL-LOGFILE-GROUP-001. Scope: the LOGFILE GROUP alternatives of create, alter and drop, logfile_group_info, alter_logfile_group_info, add_log_file, lg_redofile, logfile_group_name (5.6, 5.7), alter_logfile_stmt, drop_logfile_stmt (8.0 and later), lg_undofile. The names go through MYSQL-TABLESPACE-001 and the options through MYSQL-STORAGE-OPTION-001. Constructs: CreateLogfileGroup, AlterLogfileGroup, DropLogfileGroup, LogFile. Terminates: every child is a strict subtree. Source: https://dev.mysql.com/doc/refman/8.4/en/create-logfile-group.html, https://dev.mysql.com/doc/refman/8.4/en/alter-logfile-group.html, https://dev.mysql.com/doc/refman/8.4/en/drop-logfile-group.html. Status: Implemented.
Methods§
public function __construct(private Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
Lowers a log file group statement.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 2
- method-call SqlSemantics\Platform\MySql\Lowering\Server\StatementRule::area() packages/sql-semantics-mysql/src/Lowering/Server/StatementRule.php:122
- method-call SqlSemantics\Platform\MySql\Lowering\Server\Storage\LogfileGroupRule::statement() packages/sql-semantics-mysql/src/Lowering/Server/Storage/LogfileGroupRule.php:73
Calls 12
- new TablespaceRule line 62
- class-const LogfileGroupRule::STATEMENTS() line 63
- method-call TablespaceRule::name() line 65
- method-call Form::node() line 65
- method-call LogfileGroupRule::file() line 66
- method-call TablespaceRule::options() line 67
- new CreateLogfileGroup line 69
- new AlterLogfileGroup line 69
- method-call LogfileGroupRule::statement() line 73
- method-call Lowering::form() line 73
- new DropLogfileGroup line 74
- static-call ImplementationGap::production() line 78
Lowers a log file: a node of add_log_file, lg_undofile or lg_redofile.
Parameters
$file | Node |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 2
- method-call SqlSemantics\Platform\MySql\Lowering\Server\Storage\LogfileGroupRule::statement() packages/sql-semantics-mysql/src/Lowering/Server/Storage/LogfileGroupRule.php:66
- method-call SqlSemantics\Platform\MySql\Lowering\Server\Storage\LogfileGroupRule::file() packages/sql-semantics-mysql/src/Lowering/Server/Storage/LogfileGroupRule.php:92
Calls 6
- method-call Lowering::form() line 89
- method-call LogfileGroupRule::file() line 92
- new LogFile line 93
- class-const LogFileKind::Undo() line 93
- class-const LogFileKind::Redo() line 94
- static-call ImplementationGap::production() line 95
Private surface 2§
Implementation details, listed for orientation only.
private const STATEMENTS = ['logfile_group_info: logfile_group_name add_log_file logfile_group_option_list…private Lowering $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
LogfileGroupRuleTestcalls