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.

Reading the demanded indexdoctest
$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 = null

Methods§

public function __construct(public Name|null $index = null)

Parameters

$indexName|nullThe index of INDEXED BY; null for NOT INDEXED
public function render(Output $out): void

Writes the clause.

Parameters

$outOutput
Calls 2

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
Type declarations 5