classUnionOption
final class UnionOption
implements TableOption
uses Snapshot
Public API: explicitly declared with
@visibility public.The UNION option of a MERGE table: the tables it merges, possibly none.
The equals sign between the option and its value is optional and is not kept. Source: https://dev.mysql.com/doc/refman/8.4/en/create-table.html#create-table-options.
$create = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('CREATE TABLE t (a INT) UNION = (t1, t2)');
$create->statement->options[0] instanceof \SqlSemantics\Platform\MySql\Statement\Table\Option\UnionOption // => trueProperties§
public list<QualifiedName> $tablesMethods§
public function __construct(list<QualifiedName> $tables)Parameters
$tables | list<QualifiedName> | The merged tables in order |
Calls 3
- static-call Check::listOf() line 39
- class-const QualifiedName::class() line 39
- static-call Check::input() line 41
public function render(Output $out): voidWrites the option.
Parameters
$out | Output |
Calls 5
- method-call Output::keyword() line 50
- method-call Output::symbol() line 53
- method-call Output::name() line 56
- class-const NameUse::Qualifier() line 56
- class-const NameUse::Relation() line 58
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.