classIndexChoice
final class IndexChoice
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.The index a table use demands: a named index, or no index at all.
Source: https://sqlite.org/lang_indexedby.html.
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT a FROM t INDEXED BY i');
$query->statement->from->index->index->value // => 'i'Properties§
public Name|null $index = nullMethods§
public function __construct(public Name|null $index = null)Parameters
$index | Name|null | The index of INDEXED BY; null for NOT INDEXED |
public function render(Output $out): voidWrites the clause.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 40
- class-const NameUse::Label() line 42
Test cases 6§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 4
Relations§
Instantiated in 4
- new SqlSemantics\Platform\Sqlite\Lowering\Query\FromRule::indexed() packages/sql-semantics-sqlite/src/Lowering/Query/FromRule.php:182
- new SqlSemantics\Platform\Sqlite\Lowering\Query\FromRule::indexed() packages/sql-semantics-sqlite/src/Lowering/Query/FromRule.php:183
- new SqlSemantics\Platform\Sqlite\Lowering\Trigger\TriggerRule::target() packages/sql-semantics-sqlite/src/Lowering/Trigger/TriggerRule.php:197
- new SqlSemantics\Platform\Sqlite\Lowering\Trigger\TriggerRule::target() packages/sql-semantics-sqlite/src/Lowering/Trigger/TriggerRule.php:198
Type declarations 5
- type SqlSemantics\Platform\Sqlite\Lowering\Mutation\MutationRule packages/sql-semantics-sqlite/src/Lowering/Mutation/MutationRule.php:143
- type SqlSemantics\Platform\Sqlite\Lowering\Query\FromRule packages/sql-semantics-sqlite/src/Lowering/Query/FromRule.php:177
- type SqlSemantics\Platform\Sqlite\Lowering\Query\FromRule packages/sql-semantics-sqlite/src/Lowering/Query/FromRule.php:193
- type SqlSemantics\Platform\Sqlite\Statement\Mutation\MutationTarget packages/sql-semantics-sqlite/src/Statement/Mutation/MutationTarget.php:44
- type SqlSemantics\Platform\Sqlite\Statement\Relation\TableInput packages/sql-semantics-sqlite/src/Statement/Relation/TableInput.php:44