classImplicitColumn
final class ImplicitColumn
uses Snapshot
Public API: explicitly declared with
@visibility public.A column a table has without declaring it, such as a row identifier or a system column.
It is found by any of its names when no declared column has that name, and it is not part of *. When it is another name for a declared column, the reference resolves to that declared column.
$semantics = new \SqlSemantics\Platform\MySql\Semantics();
$table = $semantics->analyze('CREATE TABLE t (id INT)')->declarations()[0];
$implicit = new \SqlSemantics\Platform\MySql\Model\Statement\Declaration\ImplicitColumn([new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('rowid')], $table->columns[0]);
$implicit->names[0]->value // => 'rowid'Properties§
public non-empty-list<Name> $namespublic Column $columnMethods§
Parameters
Calls 2
- static-call Check::listOf() line 40
- class-const Name::class() line 40
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Other tests reaching this symbol 1
Relations§
Instantiated in 2
- new SqlSemantics\Platform\MySql\Rules\TableDefinition\TableDeclaration::split() packages/sql-semantics-mysql/src/Rules/TableDefinition/TableDeclaration.php:151
- new SqlSemantics\Platform\MySql\Rules\TableDefinition\TableDeclaration::like() packages/sql-semantics-mysql/src/Rules/TableDefinition/TableDeclaration.php:197