interfaceNamedRelation
interface NamedRelation
extends Relation
Public API: explicitly declared with
@visibility public.An input relation that is one named table, view or common table, optionally renamed.
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT a FROM t AS x');
[$query->singleNamedInput()->name()->name->value, $query->singleNamedInput()->alias()?->value] // => ['t', 'x']Methods§
public function name(): QualifiedNameAnswers the relation name as the statement wrote it, decoded.
Returns
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
NamedRelationTestcalls
Relations§
Implemented by 3
Type checks 4
- instanceof SqlSemantics\Platform\Sqlite\Model\Statement\Operation::singleNamedInput() packages/sql-semantics-sqlite/src/Model/Statement/Operation.php:162
- instanceof SqlSemantics\Platform\Sqlite\Rules\Resolution\FromScope::open() packages/sql-semantics-sqlite/src/Rules/Resolution/FromScope.php:60
- instanceof SqlSemantics\Platform\Sqlite\Rules\Resolution\FromScope::open() packages/sql-semantics-sqlite/src/Rules/Resolution/FromScope.php:61
- instanceof SqlSemantics\Platform\Sqlite\Rules\Resolution\FromScope::open() packages/sql-semantics-sqlite/src/Rules/Resolution/FromScope.php:63